From: Don Armstrong Date: Wed, 21 Feb 2018 21:29:26 +0000 (-0800) Subject: allow the regex to really be a regex X-Git-Tag: release/2.6.0~23 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=828a3b34fd07b0c5fda2c45115958c94aaf3014f allow the regex to really be a regex --- diff --git a/bin/debbugs-spam b/bin/debbugs-spam index da5e457..09077e0 100755 --- a/bin/debbugs-spam +++ b/bin/debbugs-spam @@ -202,10 +202,10 @@ sub mark_it { my $body = $rec->{text}; my ($subject) = $body =~ /^Subject: *(.+)$/mi; my $is_match = 0; - if ($subject =~ /\Q$regex\E/) { + if ($subject =~ /$regex/) { $is_match = 1; } - if ($mid =~ /\Q$regex\E/) { + if ($mid =~ /$regex/) { $is_match = 1; } if ($is_match) {