From 627916bc54d4e62c84667674a68ff7cec439d07c Mon Sep 17 00:00:00 2001 From: Thomas Torsney-Weir Date: Tue, 6 Aug 2013 10:56:24 +0200 Subject: [PATCH] force markdown match to match the full extension --- lib/jekyll/converters/markdown.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/converters/markdown.rb b/lib/jekyll/converters/markdown.rb index baeb9bf7..485cac82 100644 --- a/lib/jekyll/converters/markdown.rb +++ b/lib/jekyll/converters/markdown.rb @@ -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