Verify trailing periods as sentence punctuation do not link
This commit is contained in:
parent
1f8680f4b4
commit
372879c8d4
1 changed files with 9 additions and 0 deletions
|
@ -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 <a href=\"https://pleroma.social\">https://pleroma.social</a>."
|
||||
|
||||
assert Linkify.link(text) == expected
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue