]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: fix extract_resource
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 14 Feb 2010 16:12:17 +0000 (17:12 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:30 +0000 (16:49 +0200)
regress/scripts/functions.pm

index bfabe110494beefc782d41c8182a4a08548fdf61..d5a0244eea935324e0ef0b48b2c0d100aead68e3 100644 (file)
@@ -98,7 +98,7 @@ sub extract_resource
     open(FP, $file) or die "Can't open $file";
     my $content = join("", <FP>);
     
-    if ($content =~ m/(^$type {.+?Name\s*=\s*"?$name"?.+?^})/ms) {
+    if ($content =~ m/(^$type {[^}]+?Name\s*=\s*"?$name"?[^}]+?^})/ms) {
         print $1, "\n";
     }