lib/ocr-file/document.rb in ocr-file-0.0.7 vs lib/ocr-file/document.rb in ocr-file-0.0.8
- old
+ new
@@ -64,10 +64,10 @@
@original_file_path.downcase.include?('.pdf')
end
def image?
return false if pdf?
- ACCEPTED_IMAGE_TYPES.any? { |type| @original_file_path.downcase.include?(".#{type}")}
+ ACCEPTED_IMAGE_TYPES.any? { |type| @original_file_path.downcase.include?(".#{type}") }
end
# Treat anything which isnt a PDF or image as text
def text?
!pdf? && !image?