]> git.donarmstrong.com Git - debbugs.git/commitdiff
allow the regex to really be a regex
authorDon Armstrong <don@donarmstrong.com>
Wed, 21 Feb 2018 21:29:26 +0000 (13:29 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 21 Feb 2018 21:29:26 +0000 (13:29 -0800)
bin/debbugs-spam

index da5e4577852855152d0f046fc8db757cd3ab2f74..09077e0acccac2a0c842caf0df07b6cea79ab520 100755 (executable)
@@ -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) {