Browse Source

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

master
Shadowfacts 1 year ago
parent
commit
7e38b460c6
Signed by: shadowfacts GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/clacks/user_actions_helper.ex

+ 1
- 1
lib/clacks/user_actions_helper.ex 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>")


Loading…
Cancel
Save