Commit c8ade4d6 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 340350: 009bugwords.t barewords detection is imperfect - Patch by Fré©ric…

Bug 340350: 009bugwords.t barewords detection is imperfect - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=Colin a=LpSolit
parent 3514b985
......@@ -68,7 +68,7 @@ foreach my $file (@testitems) {
my $lineno = scalar(@lineno) + 1;
# "a bug", "bug", "bugs"
if (grep /(a?[\s>]bugs?[\s.:;])/i, $text) {
if (grep /(a?[\s>]bugs?[\s.:;,])/i, $text) {
# Exclude variable assignment.
unless (grep /bugs =/, $text) {
push(@errors, [$lineno, $text]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment