diff options
author | murphy <murphy@rubychan.de> | 2009-01-01 13:57:08 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2009-01-01 13:57:08 +0000 |
commit | de0fc10606a67c95c27bcadd2f8daaf6820ef1ea (patch) | |
tree | 0321b517e19386aa80df646344a65fe38bf83054 /lib/coderay/helpers/plugin.rb | |
parent | 71c86e1e632865c5dceb51161753c529c36e191d (diff) | |
download | coderay-de0fc10606a67c95c27bcadd2f8daaf6820ef1ea.tar.gz |
Made plugin ids case-insensitive.
With this change, upper case lang names are allowed like 'C'.
Diffstat (limited to 'lib/coderay/helpers/plugin.rb')
-rw-r--r-- | lib/coderay/helpers/plugin.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/helpers/plugin.rb b/lib/coderay/helpers/plugin.rb index d03dcfb..4ae8e7a 100644 --- a/lib/coderay/helpers/plugin.rb +++ b/lib/coderay/helpers/plugin.rb @@ -245,7 +245,7 @@ protected id elsif id.is_a? String if id[/\w+/] == id - id.to_sym + id.downcase.to_sym else raise ArgumentError, "Invalid id: '#{id}' given." end |