From 0e90c4070de00e403c4879d7e28e9d83592b5944 Mon Sep 17 00:00:00 2001 From: minima Date: Wed, 21 Dec 2005 18:36:26 +0000 Subject: [PATCH] fix BadWord to break on word boundaries --- perl/BadWords.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl/BadWords.pm b/perl/BadWords.pm index df6a1557..3d740438 100644 --- a/perl/BadWords.pm +++ b/perl/BadWords.pm @@ -106,7 +106,7 @@ sub check return @out if @out; - for (split(/\s+/, $s)) { + for (split(/\b/, $s)) { s/\'?S$//; push @out, $_ if $badword->in($_); } -- 2.43.0