Hooverian simplification, actionscriptified.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5767 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -191,14 +191,14 @@ public /*abstract*/ class CurseFilter implements ChatFilter
|
||||
continue;
|
||||
}
|
||||
if ("" == pattern) {
|
||||
pattern += ".*(";
|
||||
pattern += "(";
|
||||
} else {
|
||||
pattern += "|";
|
||||
}
|
||||
pattern += "\\b" +
|
||||
token.replace(/\*/g, "[A-Za-z]*") + "\\b";
|
||||
}
|
||||
pattern += ").*";
|
||||
pattern += ")";
|
||||
|
||||
_stopExp = new RegExp(pattern, "i");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user