This commit is contained in:
Carsten Otto 2017-03-05 13:56:36 +01:00
parent b8ab28819c
commit ccac45b377

View file

@ -10,7 +10,7 @@ module RenderingHelper
right = $'
# detect already linked URLs and URLs in the middle of a tag
if left =~ /<[^>]+$/ && right =~ /^[^>]*>/
# do not change string; URL is alreay linked
# do not change string; URL is already linked
href
else
content_tag(:a, h(href), :href => h(href))