From 372879c8d4dd402ffe82994184a9283695430141 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Wed, 18 Nov 2020 17:40:10 +0000 Subject: [PATCH] Verify trailing periods as sentence punctuation do not link --- test/linkify_test.exs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/linkify_test.exs b/test/linkify_test.exs index f7bfc68..2568052 100644 --- a/test/linkify_test.exs +++ b/test/linkify_test.exs @@ -667,5 +667,14 @@ defmodule LinkifyTest do assert Linkify.link(text) == expected end + + test "Does not link trailing punctuation" do + text = "You can find more info at https://pleroma.social." + + expected = + "You can find more info at https://pleroma.social." + + assert Linkify.link(text) == expected + end end end