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
1 changed files with 1 additions and 1 deletions

View File

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