X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Fformatter_test.exs;h=cb7695e8e1c2b3576d242dcc77d03e55fcb54b89;hb=9c0c40cf1e11fb0e59dd675e867e97e6369c7b80;hp=f919738812c696c3b357880cd631cf1e2888364f;hpb=7da978f3f54a8981c082625a8ad2fea48c918675;p=akkoma
diff --git a/test/formatter_test.exs b/test/formatter_test.exs
index f91973881..cb7695e8e 100644
--- a/test/formatter_test.exs
+++ b/test/formatter_test.exs
@@ -25,6 +25,16 @@ defmodule Pleroma.FormatterTest do
expected = "http://www.cs.vu.nl/~ast/intel/"
assert Formatter.linkify(text) == expected
+
+ text = "https://forum.zdoom.org/viewtopic.php?f=44&t=57087"
+ expected = "https://forum.zdoom.org/viewtopic.php?f=44&t=57087"
+
+ assert Formatter.linkify(text) == expected
+
+ text = "https://en.wikipedia.org/wiki/Sophia_(Gnosticism)#Mythos_of_the_soul"
+ expected = "https://en.wikipedia.org/wiki/Sophia_(Gnosticism)#Mythos_of_the_soul"
+
+ assert Formatter.linkify(text) == expected
end
end