diff options
Diffstat (limited to 'lib/rdoc/markup/to_html_crossref.rb')
-rw-r--r-- | lib/rdoc/markup/to_html_crossref.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rdoc/markup/to_html_crossref.rb b/lib/rdoc/markup/to_html_crossref.rb index e6661b621e..06fee91a11 100644 --- a/lib/rdoc/markup/to_html_crossref.rb +++ b/lib/rdoc/markup/to_html_crossref.rb @@ -83,6 +83,8 @@ class RDoc::Markup::ToHtmlCrossref < RDoc::Markup::ToHtml def handle_regexp_CROSSREF(target) name = target.text + return name if @options.autolink_excluded_words&.include?(name) + return name if name =~ /@[\w-]+\.[\w-]/ # labels that look like emails unless @hyperlink_all then |