From e5ffe76311319a9c5cdf30a6334d16191402e98d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Fri, 9 Mar 2012 19:09:32 -0500 Subject: [PATCH] stronger regex --- plugins/relayd/relayd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relayd/relayd b/plugins/relayd/relayd index 64cec1ab..e2cbe063 100755 --- a/plugins/relayd/relayd +++ b/plugins/relayd/relayd @@ -58,7 +58,7 @@ my $cmd = (defined($ARGV[0])) ? $ARGV[0] : ''; my @hosts = (); open(my $conf, "<", $configfile) or die "can't open $configfile: $!"; my $content = join("", <$conf>); -while ( $content =~ /table\s*<([^>]*)>\s*{([^}]*)}/g) { +while ( $content =~ /table\s*<([^>]+)>\s*{([^}]+)}/g) { my $hosts = $2; print "table: $1, " if defined $Munin::Plugin::DEBUG; $hosts =~ s/#.*$//mg; # comments