X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=inline;f=test%2Fformatter_test.exs;h=cb7695e8e1c2b3576d242dcc77d03e55fcb54b89;hb=61c16193decca80c4021039a674edb77c7bf6158;hp=f919738812c696c3b357880cd631cf1e2888364f;hpb=be67db55475f2dc44590680242e116d3d0d4c1ec;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