projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fiddle about a bit with the prefix table
[spider.git]
/
perl
/
BadWords.pm
diff --git
a/perl/BadWords.pm
b/perl/BadWords.pm
index 7ae0373f436f007edcd259af76b2699f3f210a6d..d0572cc2de4cb9f99b60b02461383d56c8117e6f 100644
(file)
--- a/
perl/BadWords.pm
+++ b/
perl/BadWords.pm
@@
-75,7
+75,7
@@
sub create_regex
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}";