]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Hval.pm
wwwatomstream: move {emit_header} field to $self
[public-inbox.git] / lib / PublicInbox / Hval.pm
index 79005d2109499aae4b4abe6cf216a7583c909ad1..46a839160c3f996e25eb4e0b91b4a1a82fdfabef 100644 (file)
@@ -78,9 +78,9 @@ 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 }
+       my $addrs = $ibx->{-no_obfuscate}; # { $address => 1 }
        $_[1] =~ s/(([\w\.\+=\-]+)\@([\w\-]+\.[\w\.\-]+))/
                my ($addr, $user, $domain) = ($1, $2, $3);
                if ($addrs->{$addr} || ((defined $re && $domain =~ $re))) {