]> Sergey Matveev's repositories - public-inbox.git/commitdiff
config: allow underscore in section names
authorEric Wong <e@80x24.org>
Sat, 21 Nov 2015 01:42:17 +0000 (01:42 +0000)
committerEric Wong <e@80x24.org>
Sat, 21 Nov 2015 01:45:52 +0000 (01:45 +0000)
Apparently git allows them, and they're definitely alright
in email addresses.

lib/PublicInbox/Config.pm

index 8da00b0a818d1e44d0248d00cd39564d4fb1a919..353a1fb2e3cdf73aee25237dfa2de968a848ce2a 100644 (file)
@@ -45,7 +45,7 @@ sub lookup {
        my $pfx;
 
        foreach my $k (keys %$self) {
-               $k =~ /\A(publicinbox\.[A-Z0-9a-z-]+)\.address\z/ or next;
+               $k =~ /\A(publicinbox\.[\w-]+)\.address\z/ or next;
                my $v = $self->{$k};
                if (ref($v) eq "ARRAY") {
                        foreach my $alias (@$v) {