filenames can have newlines in them
Ben Toews mastahyeti@gmail.com
Wed, 01 May 2013 12:56:54 -0500
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
lib/github/markup.rb
→
lib/github/markup.rb
@@ -62,7 +62,7 @@ end
def renderer(filename) @@markups.each do |key, value| - if Regexp.compile("\\.(#{key})$") =~ filename + if Regexp.compile("\\.(#{key})\\z") =~ filename return value end end@@ -71,7 +71,7 @@ end
def renderer_name(filename) @@markups.each do |key, value| - if Regexp.compile("\\.(#{key})$") =~ filename + if Regexp.compile("\\.(#{key})\\z") =~ filename return key end end