my $bwfn = "$main::data/badword";
# copy issue ones across
-filecopy("$regex.issue", $regex) unless -e $regex;
+filecopy("$regex.gb.issue", $regex) unless -e $regex;
filecopy("$bwfn.issue", $bwfn) unless -e $bwfn;
$badword = new DXHash "badword";
my $w = uc $_;
my @l = split //, $w;
my $e = join '+[\s\W]*', @l;
- $s .= "push \@out, \$1 if \$str =~ /($e)/;\n";
+ $s .= "push \@out, \$1 if \$str =~ /\\b($e)/;\n";
}
}
$s .= "return \@out;\n}";
my $s = uc shift;
my @out;
- dbg($s) if isdbg('badword');
push @out, &$regexcode($s) if $regexcode;
return @out if @out;