From de0fc10606a67c95c27bcadd2f8daaf6820ef1ea Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 1 Jan 2009 13:57:08 +0000 Subject: Made plugin ids case-insensitive. With this change, upper case lang names are allowed like 'C'. --- bin/coderay | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/coderay') diff --git a/bin/coderay b/bin/coderay index 5247761..61841b7 100644 --- a/bin/coderay +++ b/bin/coderay @@ -27,11 +27,11 @@ Example: if first if first[/-(\w+)/] == first - lang = $1.to_sym + lang = $1 input = $stdin.read tokens = :scan elsif first == '-' - lang = $1.to_sym + lang = $1 input = $stdin.read tokens = :scan else @@ -46,7 +46,7 @@ Example: if second if second[/-(\w+)/] == second - format = $1.to_sym + format = $1 else raise 'Invalid format (must be -xxx).' end -- cgit v1.2.1