about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-06-29 00:10:38 +0000
committerEric Wong <e@80x24.org>2017-06-29 00:11:40 +0000
commitcfb0a03a8966c71820e4536eaf31265ea79397e6 (patch)
tree4cdedb0371d9caf6e0352d4e46ef34d1784f9aaf /t
parente906b28db7abe72b916a8510a54122ce72514304 (diff)
downloadpublic-inbox-cfb0a03a8966c71820e4536eaf31265ea79397e6.tar.gz
Only one substitution character is necessary when obfuscating
email addresses.
Diffstat (limited to 't')
-rw-r--r--t/hval.t2
1 files changed, 2 insertions, 0 deletions
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&#8226;comm
 hello@example.com
 meta@public-inbox.org
 test@public-inbox&#8226;org
+test@a&#8226;b.c.org
 EOF
 
 is($html, $exp, 'only obfuscated relevant addresses');