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.
1 parent 6d674f4 commit 4943d20Copy full SHA for 4943d20
lib/rdoc/cross_reference.rb
@@ -18,7 +18,7 @@ class RDoc::CrossReference
18
#
19
# See CLASS_REGEXP_STR
20
21
- METHOD_REGEXP_STR = '([a-z]\w*[!?=]?|%|===)(?:\([\w.+*/=<>-]*\))?'
+ METHOD_REGEXP_STR = '([a-z]\w*[!?=]?|%|===|\[\]=?|<<|>>)(?:\([\w.+*/=<>-]*\))?'
22
23
##
24
# Regular expressions matching text that should potentially have
test/test_rdoc_cross_reference.rb
@@ -19,9 +19,10 @@ def refute_ref name
def test_METHOD_REGEXP_STR
re = /#{RDoc::CrossReference::METHOD_REGEXP_STR}/
- re =~ '==='
-
- assert_equal '===', $&
+ %w'=== [] []= << >>'.each do |x|
+ re =~ x
+ assert_equal x, $&
25
+ end
26
end
27
28
def test_resolve_C2
0 commit comments