X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fhval.t;h=5afc2052b7220713fc15bad7f61877932d9b1bef;hb=6b4e4f0d2d52a4b39c68d8f63915ddb7e1e8270e;hp=e80a02ff40879657678425852c7c9f26c541df32;hpb=7f454bace0442cd5ce22068ec1e098e964d82778;p=public-inbox.git
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 -');