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 74e39e3 commit 41b4454Copy full SHA for 41b4454
lib/rails_autolink/helpers.rb
@@ -70,7 +70,7 @@ def auto_link(text, *args, &block) #link = :all, html = {}, &block)
70
71
private
72
73
- AUTO_LINK_RE = /((http|https|ftp):\/\/[\w?=&.\/-;#~%-]+(?![\w\s?&.\/;#~%"=-]*>))/g
+ AUTO_LINK_RE = /((http|https|ftp):\/\/[\w?=&.\/-;#~%-]+(?![\w\s?&.\/;#~%"=-]*>))/
74
75
# regexps for determining context, used high-volume
76
AUTO_LINK_CRE = [/<[^>]+$/, /^[^>]*>/, /<a\b.*?>/i, /<\/a>/i]
0 commit comments