2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Correct regexp to accept list with dashes etc. in the name

This commit is contained in:
Jakob Unterwurzacher 2011-09-11 13:49:43 +02:00 committed by Steve Schnepp
parent 78c9d0c886
commit b8e09a39b7

View File

@ -48,7 +48,7 @@ my $list_members = "/usr/sbin/list_members";
open(LL, "$list_lists|") or exit 4;
while (<LL>)
{
($list, $desc) = (/\s+(\w+)\s-\s(.*)$/);
($list, $desc) = (/^\s+(.*?)\s-\s(.*)$/);
$lists{$list} = $desc if ($list);
}
close(LL);