summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2022-12-26 10:13:48 -0500
committertusooa <tusooa@kazv.moe>2022-12-28 11:57:29 -0500
commit4b66f2b7f1bef06c32258e5c53bacfa73c2c9787 (patch)
tree5c188120f0d92f9a04dd08be780ed6434ee4fb2d /test
parent2bc6911139a3aee68bc29d3c9838c7730d5ae706 (diff)
downloadpleroma-4b66f2b7f1bef06c32258e5c53bacfa73c2c9787.tar.gz
pleroma-4b66f2b7f1bef06c32258e5c53bacfa73c2c9787.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