X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Fhval.t;h=5afc2052b7220713fc15bad7f61877932d9b1bef;hp=e80a02ff40879657678425852c7c9f26c541df32;hb=4eee5af6011cc8cdefb66c9729952c7eff5c0b0b;hpb=7f454bace0442cd5ce22068ec1e098e964d82778 diff --git a/t/hval.t b/t/hval.t index e80a02ff..5afc2052 100644 --- a/t/hval.t +++ b/t/hval.t @@ -1,4 +1,4 @@ -# Copyright (C) 2017-2020 all contributors +# Copyright (C) 2017-2021 all contributors # License: AGPL-3.0+ use strict; use warnings; @@ -47,6 +47,10 @@ EOF is($html, $exp, 'only obfuscated relevant addresses'); +$exp = 'https://example.net/foo@example.net'; +PublicInbox::Hval::obfuscate_addrs($ibx, my $res = $exp); +is($res, $exp, 'does not obfuscate URL with Message-ID'); + is(PublicInbox::Hval::to_filename('foo bar '), 'foo-bar', 'to_filename has no trailing -');