X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Fhval.t;h=5afc2052b7220713fc15bad7f61877932d9b1bef;hp=9d0dab7a6aa28bddb42ce62bc169b047d982edbf;hb=4eee5af6011cc8cdefb66c9729952c7eff5c0b0b;hpb=af0b0fb7a454470a32c452119d0392e0dedb3fe1 diff --git a/t/hval.t b/t/hval.t index 9d0dab7a..5afc2052 100644 --- a/t/hval.t +++ b/t/hval.t @@ -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 -');