From: Eric Bollengier Date: Sun, 14 Feb 2010 16:12:17 +0000 (+0100) Subject: regress: fix extract_resource X-Git-Tag: Release-7.0.0~2210 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fdee826be35e4ef8d27530020ebeffbeed8725e4;p=bacula%2Fbacula regress: fix extract_resource --- diff --git a/regress/scripts/functions.pm b/regress/scripts/functions.pm index bfabe11049..d5a0244eea 100644 --- a/regress/scripts/functions.pm +++ b/regress/scripts/functions.pm @@ -98,7 +98,7 @@ sub extract_resource open(FP, $file) or die "Can't open $file"; my $content = join("", ); - if ($content =~ m/(^$type {.+?Name\s*=\s*"?$name"?.+?^})/ms) { + if ($content =~ m/(^$type {[^}]+?Name\s*=\s*"?$name"?[^}]+?^})/ms) { print $1, "\n"; }