lib/onebox/engine/amazon_onebox.rb in onebox-1.8.62 vs lib/onebox/engine/amazon_onebox.rb in onebox-1.8.63
- old
+ new
@@ -155,10 +155,10 @@
summary = raw.at("#productDescription")
result[:description] = og[:description] || (summary && summary.inner_text)
end
- result[:price] = nil if result[:price] == "$0" || result[:price] == 0
+ result[:price] = nil if result[:price].start_with?("$0") || result[:price] == 0
result
end
end
end