Fix links in text/plain posts not getting converted to HTML

This commit is contained in:
Shadowfacts 2020-05-25 15:44:21 -04:00
parent 0f7eb99efb
commit 7e38b460c6
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ defmodule Clacks.UserActionsHelper do
{String.replace(content, ["\r\n", "\n"], "<br>"), mentions}
end
@link_regex ~r/\bhttps?\S+\b/i
@link_regex ~r/\b(https?\S+)\b/i
defp replace_links(content) do
Regex.replace(@link_regex, content, "<a href=\"\\1\">\\1</a>")