We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50f0270 + 8e47f78 commit 6d98e9fCopy full SHA for 6d98e9f
lib/rdoc/cross_reference.rb
@@ -19,7 +19,7 @@ class RDoc::CrossReference
19
#
20
# See CLASS_REGEXP_STR
21
22
- METHOD_REGEXP_STR = '([a-z]\w*[!?=]?|%|===|\[\]=?|<<|>>|\+@|-@|-|\+|\*)(?:\([\w.+*/=<>-]*\))?'
+ METHOD_REGEXP_STR = '([a-z]\w*[!?=]?|%|===?|\[\]=?|<<|>>|\+@|-@|-|\+|\*)(?:\([\w.+*/=<>-]*\))?'
23
24
##
25
# Regular expressions matching text that should potentially have
test/rdoc/test_rdoc_cross_reference.rb
@@ -20,7 +20,7 @@ def refute_ref name
def test_METHOD_REGEXP_STR
re = /#{RDoc::CrossReference::METHOD_REGEXP_STR}/
- %w'=== [] []= << >>'.each do |x|
+ %w'== === [] []= << >>'.each do |x|
re =~ x
assert_equal x, $&
26
end
0 commit comments