LinkifyTest: Add test for short IPv4 bug.

This commit is contained in:
Lain Soykaf 2020-12-22 14:17:13 +01:00
parent 8091bdbc7b
commit e0fd2e7620

View file

@ -768,5 +768,13 @@ defmodule LinkifyTest do
assert Linkify.link(text) == expected
end
test "shortened IPv4 are not linked" do
text = "109.99"
expected = "109.99"
assert Linkify.link(text) == expected
end
end
end