From 21cd434b4f932c0fdc13191f89892111d094901b Mon Sep 17 00:00:00 2001 From: Dave Hoover Date: Mon, 4 May 2009 18:25:12 +0000 Subject: [PATCH] Would've been better if I didn't misread the docs for "match" and had realized my last change didn't actually work. We'll FIND stop words in text now so our regexp doesn't have to match the whole string. Took a peek at the as docs for RegExp.test() and it looks like the flash side of things should be working properly after Ray duplicated this over there, but I wouldn't mind if someone w/ that built could just double check that stopwords are still working properly there. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5769 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/crowd/chat/client/CurseFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/threerings/crowd/chat/client/CurseFilter.java b/src/java/com/threerings/crowd/chat/client/CurseFilter.java index add5e86f5..f875bae69 100644 --- a/src/java/com/threerings/crowd/chat/client/CurseFilter.java +++ b/src/java/com/threerings/crowd/chat/client/CurseFilter.java @@ -75,7 +75,7 @@ public abstract class CurseFilter implements ChatFilter { // first, check against the drop-always list _stopMatcher.reset(msg); - if (_stopMatcher.matches()) { + if (_stopMatcher.find()) { return null; }