lib/imgkit/source.rb in imgkit-1.3.4 vs lib/imgkit/source.rb in imgkit-1.3.5
- old
+ new
@@ -5,10 +5,10 @@
def initialize(url_file_or_html)
@source = url_file_or_html
end
def url?
- @source.is_a?(String) && @source.match(/^http/)
+ @source.is_a?(String) && @source.match(/\Ahttp/)
end
def file?
@source.kind_of?(File)
end