diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-05 13:43:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-05 13:43:19 +0000 |
commit | 4d076e91c8ade0015817fc18104b1271e2ac4a40 (patch) | |
tree | 794cc93c4ce3a69a6122db9201e01f5e774410e3 /lib/un.rb | |
parent | ed0cba79ca34fa67c4f4d76bdb03391a12b2c5b6 (diff) | |
download | ruby-4d076e91c8ade0015817fc18104b1271e2ac4a40.tar.gz |
un.rb: refine regexp
* lib/un.rb (help): refine regexp to extract method name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/un.rb')
-rw-r--r-- | lib/un.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -342,7 +342,7 @@ def help open(__FILE__) do |me| while me.gets("##\n") if help = me.gets("\n\n") - if all or argv.delete help[/-e \w+/].sub(/-e /, "") + if all or argv.delete help[/^#\s*ruby\s.*-e\s+(\w+)/, 1] print help.gsub(/^# ?/, "") end end |