]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/linkify.t
No ext_urls
[public-inbox.git] / t / linkify.t
index c492358257525fab99487f8e53bde3e55e209896..9280fd91fcf70f5a3306ac14dc5d6de3b4c896c1 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2018 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use warnings;
@@ -144,4 +144,9 @@ href="http://www.$hc.example.com/">http://www.$hc.example.com/</a>};
        is($s, $expect, 'IDN message escaped properly');
 }
 
+{
+       my $false_positive = 'LINKIFY'.('A' x 40);
+       is(PublicInbox::Linkify->new->to_html($false_positive),
+               $false_positive, 'false-positive left as-is');
+}
 done_testing();