Skip to content

Commit 41b4454

Browse files
committed
Update helpers.rb
1 parent 74e39e3 commit 41b4454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails_autolink/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def auto_link(text, *args, &block) #link = :all, html = {}, &block)
7070

7171
private
7272

73-
AUTO_LINK_RE = /((http|https|ftp):\/\/[\w?=&.\/-;#~%-]+(?![\w\s?&.\/;#~%"=-]*>))/g
73+
AUTO_LINK_RE = /((http|https|ftp):\/\/[\w?=&.\/-;#~%-]+(?![\w\s?&.\/;#~%"=-]*>))/
7474

7575
# regexps for determining context, used high-volume
7676
AUTO_LINK_CRE = [/<[^>]+$/, /^[^>]*>/, /<a\b.*?>/i, /<\/a>/i]

0 commit comments

Comments
 (0)