force markdown match to match the full extension
This commit is contained in:
parent
c983f38cc9
commit
627916bc54
|
@ -26,7 +26,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def matches(ext)
|
def matches(ext)
|
||||||
rgx = '(' + @config['markdown_ext'].gsub(',','|') +')'
|
rgx = '^\.(' + @config['markdown_ext'].gsub(',','|') +')$'
|
||||||
ext =~ Regexp.new(rgx, Regexp::IGNORECASE)
|
ext =~ Regexp.new(rgx, Regexp::IGNORECASE)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue