]> git.donarmstrong.com Git - debbugs.git/commitdiff
fix flatfile search regex to handle maintainers which contain '['
authorDon Armstrong <don@donarmstrong.com>
Tue, 2 Feb 2010 02:23:16 +0000 (18:23 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 2 Feb 2010 02:23:16 +0000 (18:23 -0800)
Debbugs/Bugs.pm

index 5906806b654c6ce36aff79c1c00ec95a13e1b654..573bf51756c6d28b4d01876fe6e895566e33f7d2 100644 (file)
@@ -623,7 +623,7 @@ sub get_bugs_flatfile{
      }
      my @bugs;
      BUG: while (<$flatfile>) {
-         next unless m/^(\S+)\s+(\d+)\s+(\d+)\s+(\S+)\s+\[\s*([^]]*)\s*\]\s+(\w+)\s+(.*)$/;
+         next unless m/^(\S+)\s+(\d+)\s+(\d+)\s+(\S+)\s+\[\s*(.*)\s*\]\s+(\w+)\s+(.*)$/;
          my ($pkg,$bug,$time,$status,$submitter,$severity,$tags) = ($1,$2,$3,$4,$5,$6,$7);
          next if $grep_bugs and not exists $bugs{$bug};
          if (exists $param{package}) {