From 49d9b3080695e79033a246a2087ca33939a0c4ce Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 21 Nov 2015 01:42:17 +0000 Subject: config: allow underscore in section names Apparently git allows them, and they're definitely alright in email addresses. --- lib/PublicInbox/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) { -- cgit v1.2.3-24-ge0c7