From cfb0a03a8966c71820e4536eaf31265ea79397e6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 29 Jun 2017 00:10:38 +0000 Subject: hval: only perform one substitution when obfuscating Only one substitution character is necessary when obfuscating email addresses. --- t/hval.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 't') diff --git a/t/hval.t b/t/hval.t index dcbd8382..a3712666 100644 --- a/t/hval.t +++ b/t/hval.t @@ -17,6 +17,7 @@ hello@example.comm hello@example.com meta@public-inbox.org test@public-inbox.org +test@a.b.c.org EOF PublicInbox::Hval::obfuscate_addrs($ibx, $html); @@ -26,6 +27,7 @@ hello@example•comm hello@example.com meta@public-inbox.org test@public-inbox•org +test@a•b.c.org EOF is($html, $exp, 'only obfuscated relevant addresses'); -- cgit v1.2.3-24-ge0c7