]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 151619 - Problem with the regex in checksetup.pl to find dependancies
authorbbaetz%student.usyd.edu.au <>
Thu, 15 Aug 2002 06:30:40 +0000 (06:30 +0000)
committerbbaetz%student.usyd.edu.au <>
Thu, 15 Aug 2002 06:30:40 +0000 (06:30 +0000)
r=jouni, joel

checksetup.pl

index 7c6b7d3996119b3dc2dcafeacde3d6a9da9fc426..4cf164f09b2528a85fe44d0ab009c853f5dcaa36 100755 (executable)
@@ -2782,7 +2782,8 @@ if (!($sth->fetchrow_arrayref()->[0])) {
 
         foreach $key (keys(%dupes))
         {
-                $dupes{$key} =~ s/.*\*\*\* This bug has been marked as a duplicate of (\d{1,5}) \*\*\*.*?/$1/sm;
+                $dupes{$key} =~ /^.*\*\*\* This bug has been marked as a duplicate of (\d+) \*\*\*$/ms;
+                $dupes{$key} = $1;
                 $dbh->do("INSERT INTO duplicates VALUES('$dupes{$key}', '$key')");
                 #                                        BugItsADupeOf   Dupe
         }