all repos — markup @ 8abfefe8f2fea12920d2c2380ef2b4041b1633c2

The code we use to render README.your_favorite_markup

group file extension regexp
Chris Wanstrath chris@ozmm.org
Sat, 31 Oct 2009 11:22:22 -0700
commit

8abfefe8f2fea12920d2c2380ef2b4041b1633c2

parent

9dd2a32a2cabbc9083c0c646373cd0663981c451

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

jump to
M lib/github/markup.rblib/github/markup.rb

@@ -38,7 +38,7 @@ end

def renderer(filename) @@markups.each do |key, value| - if Regexp.compile("#{key}$") =~ filename + if Regexp.compile("(#{key})$") =~ filename return value end end