diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-27 18:52:03 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-27 18:52:03 +0000 |
commit | 3f3c55f49c4d1b496a2b0e79f4eb5bc4acb993b9 (patch) | |
tree | 948c3c384324979455009c6648e069bfc9ddd8b3 /lib | |
parent | 3009adaee288c2f63d5e87091f3ed4f0b378720c (diff) | |
download | ruby-3f3c55f49c4d1b496a2b0e79f4eb5bc4acb993b9.tar.gz |
Fix quoting of method names in regexp
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index d28ec941e8..086a63f4de 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -360,8 +360,8 @@ module RDoc def find_override_comment(meth_name) comment = nil - puts "Override #{meth_name}" - if @body =~ %r{Document-method:\s#{meth_name}.*?\n((?>.*?\*/))}m + name = Regexp.escape(meth_name) + if @body =~ %r{Document-method:\s#{name}.*?\n((?>.*?\*/))}m comment = $1 end comment |