diff options
author | lain <lain@soykaf.club> | 2018-04-04 11:29:03 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-04-04 11:29:03 +0200 |
commit | 81600c94f40a6edd04c1a1db634912b61c9dbc9f (patch) | |
tree | 702787f4a95a97a2e6b17b69c5ef41f0520e5b13 /test | |
parent | bf953989cd9475f888bbd975ae07ec447fbc340c (diff) | |
download | pleroma-81600c94f40a6edd04c1a1db634912b61c9dbc9f.tar.gz pleroma-81600c94f40a6edd04c1a1db634912b61c9dbc9f.zip |
Handle + in links.
Diffstat (limited to 'test')
-rw-r--r-- | test/formatter_test.exs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/formatter_test.exs b/test/formatter_test.exs index d9cef8abc..ff882f8f1 100644 --- a/test/formatter_test.exs +++ b/test/formatter_test.exs @@ -57,6 +57,13 @@ defmodule Pleroma.FormatterTest do "<a href='https://en.wikipedia.org/wiki/Sophia_(Gnosticism)#Mythos_of_the_soul'>https://en.wikipedia.org/wiki/Sophia_(Gnosticism)#Mythos_of_the_soul</a>" assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected + + text = "https://www.google.co.jp/search?q=Nasim+Aghdam" + + expected = + "<a href='https://www.google.co.jp/search?q=Nasim+Aghdam'>https://www.google.co.jp/search?q=Nasim+Aghdam</a>" + + assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected end end |