Skip to content

Commit

Permalink
ApplicationHelper#linkify: fix URI replace regexp
Browse files Browse the repository at this point in the history
Fixes DIGREPO-887.
  • Loading branch information
dunn committed Apr 20, 2018
1 parent 6718591 commit 89029b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module ApplicationHelper
# @return [String]
def linkify(string)
string.gsub(URI.regexp(%w[http https]),
'<a href="\1://\4">\1://\4</a>')
'<a href="\1://\4\7">\1://\4\7</a>')
end

# Used in {CatalogController} to render notes and restrictions as
Expand Down

0 comments on commit 89029b7

Please sign in to comment.