projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e5a96ae
)
fix BadWord to break on word boundaries
author
minima
<minima>
Wed, 21 Dec 2005 18:36:26 +0000
(18:36 +0000)
committer
minima
<minima>
Wed, 21 Dec 2005 18:36:26 +0000
(18:36 +0000)
perl/BadWords.pm
patch
|
blob
|
history
diff --git
a/perl/BadWords.pm
b/perl/BadWords.pm
index df6a15571e112f14864960723aafacf621d19ec2..3d7404387664d34ffe7e44cda5d7380a31f2ccd2 100644
(file)
--- a/
perl/BadWords.pm
+++ b/
perl/BadWords.pm
@@
-106,7
+106,7
@@
sub check
return @out if @out;
return @out if @out;
- for (split(/\
s+
/, $s)) {
+ for (split(/\
b
/, $s)) {
s/\'?S$//;
push @out, $_ if $badword->in($_);
}
s/\'?S$//;
push @out, $_ if $badword->in($_);
}