force markdown match to match the full extension

This commit is contained in:
Thomas Torsney-Weir 2013-08-06 10:56:24 +02:00
parent c983f38cc9
commit 627916bc54
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ module Jekyll
end
def matches(ext)
rgx = '(' + @config['markdown_ext'].gsub(',','|') +')'
rgx = '^\.(' + @config['markdown_ext'].gsub(',','|') +')$'
ext =~ Regexp.new(rgx, Regexp::IGNORECASE)
end