Bug 151619 - Problem with the regex in checksetup.pl to find dependancies

r=jouni, joel
parent dcb07b50
...@@ -2782,7 +2782,8 @@ if (!($sth->fetchrow_arrayref()->[0])) { ...@@ -2782,7 +2782,8 @@ if (!($sth->fetchrow_arrayref()->[0])) {
foreach $key (keys(%dupes)) 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')"); $dbh->do("INSERT INTO duplicates VALUES('$dupes{$key}', '$key')");
# BugItsADupeOf Dupe # BugItsADupeOf Dupe
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment