Skip to content

Commit

Permalink
Merge pull request #845 from flavorjones/flavorjones-link-equals-method
Browse files Browse the repository at this point in the history
feature: Support linking #==
  • Loading branch information
tenderlove authored Oct 15, 2021
2 parents 50f0270 + 8e47f78 commit 6d98e9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rdoc/cross_reference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class RDoc::CrossReference
#
# See CLASS_REGEXP_STR

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

##
# Regular expressions matching text that should potentially have
Expand Down
2 changes: 1 addition & 1 deletion test/rdoc/test_rdoc_cross_reference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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, $&
end
Expand Down

0 comments on commit 6d98e9f

Please sign in to comment.