From e0fd2e7620984f52d81595bfb01550d43907f55d Mon Sep 17 00:00:00 2001 From: Lain Soykaf Date: Tue, 22 Dec 2020 14:17:13 +0100 Subject: [PATCH] LinkifyTest: Add test for short IPv4 bug. --- test/linkify_test.exs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/linkify_test.exs b/test/linkify_test.exs index 83b5b57..64489c1 100644 --- a/test/linkify_test.exs +++ b/test/linkify_test.exs @@ -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