From: Eric Wong Date: Sat, 21 Nov 2015 01:42:17 +0000 (+0000) Subject: config: allow underscore in section names X-Git-Tag: v1.0.0~783 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=49d9b3080695e79033a246a2087ca33939a0c4ce;p=public-inbox.git config: allow underscore in section names Apparently git allows them, and they're definitely alright in email addresses. --- diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index 8da00b0a..353a1fb2 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -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) {