This was excitingly ASCII-centric. If a filter was specified on "foo*" it would match "foobar" but not "foobär" or "foob0r" - now it should match all of those.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6272 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Mike Thomas
2010-11-16 18:12:03 +00:00
parent 08c1051809
commit 9153960fce
@@ -161,7 +161,7 @@ public abstract class CurseFilter implements ChatFilter
String p = "";
if (curse.startsWith("*")) {
curse = curse.substring(1);
p += "([a-zA-Z]*)";
p += "([\\p{L}\\p{Digit}]*)";
s += "$1";
} else {
p += "()";
@@ -170,7 +170,7 @@ public abstract class CurseFilter implements ChatFilter
p += " ";
if (curse.endsWith("*")) {
curse = curse.substring(0, curse.length() - 1);
p += "([a-zA-Z]*)";
p += "([\\p{L}\\p{Digit}]*)";
s += "$3";
}