force markdown regexp to match the full extension

This commit is contained in:
Brandon Bradley
2014-11-24 20:08:31 -06:00
parent d250efccb9
commit e546eb3e9f

View File

@@ -48,7 +48,7 @@ module Jekyll
def extname_matches_regexp
@extname_matches_regexp ||= Regexp.new(
'(' + @config['markdown_ext'].gsub(',','|') +')$',
'^\.(' + @config['markdown_ext'].gsub(',','|') +')$',
Regexp::IGNORECASE
)
end