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:
@@ -161,7 +161,7 @@ public abstract class CurseFilter implements ChatFilter
|
|||||||
String p = "";
|
String p = "";
|
||||||
if (curse.startsWith("*")) {
|
if (curse.startsWith("*")) {
|
||||||
curse = curse.substring(1);
|
curse = curse.substring(1);
|
||||||
p += "([a-zA-Z]*)";
|
p += "([\\p{L}\\p{Digit}]*)";
|
||||||
s += "$1";
|
s += "$1";
|
||||||
} else {
|
} else {
|
||||||
p += "()";
|
p += "()";
|
||||||
@@ -170,7 +170,7 @@ public abstract class CurseFilter implements ChatFilter
|
|||||||
p += " ";
|
p += " ";
|
||||||
if (curse.endsWith("*")) {
|
if (curse.endsWith("*")) {
|
||||||
curse = curse.substring(0, curse.length() - 1);
|
curse = curse.substring(0, curse.length() - 1);
|
||||||
p += "([a-zA-Z]*)";
|
p += "([\\p{L}\\p{Digit}]*)";
|
||||||
s += "$3";
|
s += "$3";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user