]> git.deb.at Git - deb/packages.git/commitdiff
align the bug closes regex
authorGerfried Fuchs <rhonda@debian.org>
Tue, 28 Jun 2011 05:57:36 +0000 (07:57 +0200)
committerGerfried Fuchs <rhonda@debian.org>
Tue, 28 Jun 2011 05:57:36 +0000 (07:57 +0200)
lib/Parse/DebianChangelog/ChangesFilters.pm
lib/Parse/DebianChangelog/Util.pm

index 8434770c704a213cd9139c16f1bbbf6eec5428bb..6e5da9cca00cda0711fe42498498c873070697cb 100644 (file)
@@ -90,7 +90,7 @@ sub email_to_ddpo {
 }
 
 sub bugs_to_bts {
-    (my $text = $_[0]) =~ s|Closes:\s*(?:Bug)?\#\d+(?:\s*,\s*(?:Bug)?\#\d+)*
+    (my $text = $_[0]) =~ s|closes:\s*(?:bug)?\#?\s?\d+(?:\s*,\s*(?:bug)?\#?\s?\d+)*
        |my $tmp = $&; { no warnings;
                         $tmp =~ s@(Bug)?\#(\d+)@<a class="buglink" href="http://bugs.debian.org/$2">$1\#$2</a>@ig; }
     "$tmp"
index 9086249b7fedd027ebcde0b313a7eeb53e347805..f5c9accd148825f1c4df1b2eaa8ec1204b1d39fe 100644 (file)
@@ -67,7 +67,7 @@ sub find_closes {
     my $changes = shift;
     my @closes = ();
 
-    while ($changes && ($changes =~ /closes:\s*(?:bug)?\#?\s?\d+(?:,\s*(?:bug)?\#?\s?\d+)*/ig)) {
+    while ($changes && ($changes =~ /closes:\s*(?:bug)?\#?\s?\d+(?:\s*,\s*(?:bug)?\#?\s?\d+)*/ig)) {
        push(@closes, $& =~ /\#?\s?(\d+)/g);
     }