X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Flinkify.t;h=e42e1efe808f249956b9b944ff13d759559423b8;hb=refs%2Fheads%2Fmaster;hp=72262fd0f2fea96b06b40cb99d1e2554d9abc436;hpb=9bd675d33ad1e49bd2ebe12a1d216216e61380de;p=public-inbox.git diff --git a/t/linkify.t b/t/linkify.t index 72262fd0..9280fd91 100644 --- a/t/linkify.t +++ b/t/linkify.t @@ -1,4 +1,4 @@ -# Copyright (C) 2016-2019 all contributors +# Copyright (C) 2016-2021 all contributors # License: AGPL-3.0+ use strict; use warnings; @@ -144,4 +144,9 @@ href="http://www.$hc.example.com/">http://www.$hc.example.com/}; 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();