diff options
author | murphy <murphy@rubychan.de> | 2006-05-11 23:32:49 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2006-05-11 23:32:49 +0000 |
commit | b4a4f4148a1627aed63c602f43bd4b5ef5093c4f (patch) | |
tree | 9709696cde081419c118215ea31690e1c0bb6dfd /lib/coderay/helpers/plugin.rb | |
parent | f5f50a14c523327a28b39eeb0223261434d6d9f7 (diff) | |
download | coderay-b4a4f4148a1627aed63c602f43bd4b5ef5093c4f.tar.gz |
new version: 0.7.1
improved bin/coderay and included it into package
added gem:install task
added Duo#highlight (alias for encode)
fixed a Plugin bug
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 2b47d8e..938d1a8 100644 --- a/lib/coderay/helpers/plugin.rb +++ b/lib/coderay/helpers/plugin.rb @@ -235,7 +235,7 @@ protected # Raises +ArgumentError+ for all other objects, or if the
# given String includes non-alphanumeric characters (\W).
def validate_id id
- if id.is_a? Symbol
+ if id.is_a? Symbol or id.nil?
id
elsif id.is_a? String
if id[/\w+/] == id
|