summaryrefslogtreecommitdiff
path: root/lib/coderay/helpers/plugin.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-10-18 17:56:37 +0000
committermurphy <murphy@rubychan.de>2009-10-18 17:56:37 +0000
commit0321aac7370e0595480ad68d3a6b712511d30efb (patch)
treea23262826a5ef6e285932c0ca1cb7a2a8891e161 /lib/coderay/helpers/plugin.rb
parent6660f9fd1ddcf02b61cd701f5b7785fe7dc9ca54 (diff)
downloadcoderay-0321aac7370e0595480ad68d3a6b712511d30efb.tar.gz
Fixing Ruby 1.9 warnings.
Diffstat (limited to 'lib/coderay/helpers/plugin.rb')
-rw-r--r--lib/coderay/helpers/plugin.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/helpers/plugin.rb b/lib/coderay/helpers/plugin.rb
index 922c528..fba8bb4 100644
--- a/lib/coderay/helpers/plugin.rb
+++ b/lib/coderay/helpers/plugin.rb
@@ -176,7 +176,7 @@ module PluginHost
def inspect
map = plugin_hash.dup
map.each do |id, plugin|
- map[id] = plugin.to_s[/(?>[\w_]+)$/]
+ map[id] = plugin.to_s[/(?>\w+)$/]
end
"#{name}[#{host_id}]#{map.inspect}"
end
@@ -325,7 +325,7 @@ module Plugin
# Returns the pulgin id used by the engine.
def plugin_id
- name[/[\w_]+$/].downcase
+ name[/\w+$/].downcase
end
end