logo

auto_linker

AutoLinker-shim, based on https://git.pleroma.social/pleroma/auto_linker
commit: 71425bb5a4c0d8755b00a469763b75db8ce77899
parent: 45a252c6fa9071fabad1d23858a420e77af744b4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  3 May 2019 18:57:29 +0200

Merge remote-tracking branch 'upstream/master' into lanodan/master

Diffstat:

Mtest/parser_test.exs13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/test/parser_test.exs b/test/parser_test.exs @@ -103,6 +103,19 @@ defmodule AutoLinker.ParserTest do text = "http://google.com" assert parse(text, url: false, phone: true) == text end + + test "do not link `:test.test`" do + text = ":test.test" + + assert parse(text, %{ + scheme: true, + extra: true, + class: false, + strip_prefix: false, + new_window: false, + rel: false + }) == text + end end test "link_email/3" do