]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Hval.pm
view: do not redundantly obfuscate addresses
[public-inbox.git] / lib / PublicInbox / Hval.pm
index 79005d2109499aae4b4abe6cf216a7583c909ad1..23233f0e7e979c8ff524e1864a46489a747512c9 100644 (file)
@@ -78,7 +78,7 @@ sub prurl ($$) {
 # However, • was chosen to make copy+paste errors more obvious
 sub obfuscate_addrs ($$;$) {
        my $ibx = $_[0];
-       my $repl = $_[2] || '•';
+       my $repl = $_[2] // '•';
        my $re = $ibx->{-no_obfuscate_re}; # regex of domains
        my $addrs = $ibx->{-no_obfuscate}; # { adddress => 1 }
        $_[1] =~ s/(([\w\.\+=\-]+)\@([\w\-]+\.[\w\.\-]+))/