lib/rabbit/parser/pdf.rb in rabbit-1.0.4 vs lib/rabbit/parser/pdf.rb in rabbit-1.0.5
- old
+ new
@@ -9,9 +9,10 @@
module Parser
class PDF < Base
unshift_loader(self)
class << self
def match?(source)
+ return true if /\Apdf\z/i =~ source.extension.to_s
source.read.start_with?("%PDF-1.")
end
end
include Element