Skip to content

Commit 937f560

Browse files
committed
Minor tweak to regexps
1 parent ab0b3dc commit 937f560

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/git-to-bugzilla.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ sub find_bugzilla_references {
6161
my $bugid;
6262
foreach my $line ( @{ $info->{log} } ) {
6363
$line = lc($line);
64-
if ( $line =~ /(closes|fixes|references):?\s*(?:bug(?:zilla)?)?\s*\#?(\d+)/ ) {
64+
if ( $line =~ /(closes|fixes|references):?\s*(?:bug(?:zilla|s)?)?\s*\#?(\d+)/ ) {
6565
$action = $1;
6666
$bugid = $2;
6767
}
68-
elsif ( $line =~ /\b(?:bug(?:zilla)?)\s*\#?(\d+)/ ) {
68+
elsif ( $line =~ /\b(?:bug(?:zilla|s)?)\s*\#?(\d+)/ ) {
6969
$action = 'references';
7070
$bugid = $1;
7171
}

0 commit comments

Comments
 (0)