From b4a4f4148a1627aed63c602f43bd4b5ef5093c4f Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 11 May 2006 23:32:49 +0000 Subject: 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 --- lib/coderay/helpers/plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/helpers/plugin.rb') 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 -- cgit v1.2.1