LinkifyTest: Add test for short IPv4 bug.
This commit is contained in:
parent
8091bdbc7b
commit
e0fd2e7620
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue