lib/rabbit/parser/wiki.rb in rabbit-1.0.4 vs lib/rabbit/parser/wiki.rb in rabbit-1.0.5
- old
+ new
@@ -15,9 +15,10 @@
module Parser
class Wiki
unshift_loader(self)
class << self
def match?(source)
+ return true if /\A(?:hiki|wiki)\z/i =~ source.extension.to_s
head = source.read[0, 500]
head.force_encoding("ASCII-8BIT") if head.respond_to?(:force_encoding)
/^!/.match(head)
end
end