From 7e38b460c60387769df2732aa4fc1dea4a77531e Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 25 May 2020 15:44:21 -0400 Subject: [PATCH] Fix links in text/plain posts not getting converted to HTML --- lib/clacks/user_actions_helper.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clacks/user_actions_helper.ex b/lib/clacks/user_actions_helper.ex index 08c1754..91a3b7b 100644 --- a/lib/clacks/user_actions_helper.ex +++ b/lib/clacks/user_actions_helper.ex @@ -118,7 +118,7 @@ defmodule Clacks.UserActionsHelper do {String.replace(content, ["\r\n", "\n"], "
"), 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, "\\1")