all repos — markup @ d27b5b1c5ae84617d4a9356eaf565c7b555c4d1d

The code we use to render README.your_favorite_markup

filenames can have newlines in them
Ben Toews mastahyeti@gmail.com
Wed, 01 May 2013 12:56:54 -0500
commit

d27b5b1c5ae84617d4a9356eaf565c7b555c4d1d

parent

8154dca5f42425fe389ed7027c5569ae91e377ba

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M lib/github/markup.rblib/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