lib/pdfkit/pdfkit.rb in pdfkit-0.6.1 vs lib/pdfkit/pdfkit.rb in pdfkit-0.6.2
- old
+ new
@@ -91,10 +91,10 @@
found = {}
content.scan(/<meta [^>]*>/) do |meta|
if meta.match(/name=["']#{PDFKit.configuration.meta_tag_prefix}/)
name = meta.scan(/name=["']#{PDFKit.configuration.meta_tag_prefix}([^"']*)/)[0][0].split
- found[name] = meta.scan(/content=["'](.*[^\\])["']/)[0][0]
+ found[name] = meta.scan(/content=["']([^"'\\]+)["']/)[0][0]
end
end
tuple_keys = found.keys.select { |k| k.is_a? Array }
tuple_keys.each do |key|