Skip to content

Commit 6d98e9f

Browse files
authored
Merge pull request #845 from flavorjones/flavorjones-link-equals-method
feature: Support linking #==
2 parents 50f0270 + 8e47f78 commit 6d98e9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rdoc/cross_reference.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class RDoc::CrossReference
1919
#
2020
# See CLASS_REGEXP_STR
2121

22-
METHOD_REGEXP_STR = '([a-z]\w*[!?=]?|%|===|\[\]=?|<<|>>|\+@|-@|-|\+|\*)(?:\([\w.+*/=<>-]*\))?'
22+
METHOD_REGEXP_STR = '([a-z]\w*[!?=]?|%|===?|\[\]=?|<<|>>|\+@|-@|-|\+|\*)(?:\([\w.+*/=<>-]*\))?'
2323

2424
##
2525
# Regular expressions matching text that should potentially have

test/rdoc/test_rdoc_cross_reference.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def refute_ref name
2020
def test_METHOD_REGEXP_STR
2121
re = /#{RDoc::CrossReference::METHOD_REGEXP_STR}/
2222

23-
%w'=== [] []= << >>'.each do |x|
23+
%w'== === [] []= << >>'.each do |x|
2424
re =~ x
2525
assert_equal x, $&
2626
end

0 commit comments

Comments
 (0)