From dcee60211f148c121d1509beebeb2880e155d720 Mon Sep 17 00:00:00 2001 From: "mozilla%colinogilvie.co.uk" Date: Mon, 13 Feb 2006 22:56:15 +0000 Subject: [PATCH] Bug 325593: [BUGZILLA] Misses bug references in a sentence with dots or commas Patch by: Teemu Mannermaa ; r=colin.ogilvie, mkanat --- webtools/mozbot/BotModules/Bugzilla.bm | 1 + 1 file changed, 1 insertion(+) diff --git a/webtools/mozbot/BotModules/Bugzilla.bm b/webtools/mozbot/BotModules/Bugzilla.bm index e8ab56d2168..40b666f8762 100644 --- a/webtools/mozbot/BotModules/Bugzilla.bm +++ b/webtools/mozbot/BotModules/Bugzilla.bm @@ -700,6 +700,7 @@ sub ignoringCommentsTo { my $self = shift; my ($who) = @_; foreach (@{$self->{'ignoreCommentsTo'}}) { + next unless $_; # Ignore blanks, happens when the array is empty (?) return 1 if $who =~ m/^(?:.*[]\s,.;:\\\/=?!()<>{}[-])?\Q$_\E(?:[]\s,.;:\\\/=?!()<>{}[-].*)?$/is; } return 0;