summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2022-12-26 10:13:48 -0500
committertusooa <tusooa@kazv.moe>2023-02-20 12:20:29 -0500
commit259905a8932074514e3473d458bedce56cd25ac1 (patch)
tree75f91d811f9d70bdf81d427508c2a74f5cd8e13e /test
parentf76c1d4f70fdda6da621a46fb75891e68e266946 (diff)
downloadpleroma-259905a8932074514e3473d458bedce56cd25ac1.tar.gz
pleroma-259905a8932074514e3473d458bedce56cd25ac1.zip
Bump earmark to 1.4.22
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/web/common_api/utils_test.exs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pleroma/web/common_api/utils_test.exs b/test/pleroma/web/common_api/utils_test.exs
index b538c5979..d309c6ded 100644
--- a/test/pleroma/web/common_api/utils_test.exs
+++ b/test/pleroma/web/common_api/utils_test.exs
@@ -178,6 +178,10 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
code = "https://github.com/pragdave/earmark/"
{result, [], []} = Utils.format_input(code, "text/markdown")
assert result == ~s[<p><a href="#{code}">#{code}</a></p>]
+
+ code = "https://github.com/~foo/bar"
+ {result, [], []} = Utils.format_input(code, "text/markdown")
+ assert result == ~s[<p><a href="#{code}">#{code}</a></p>]
end
test "link with local mention" do