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;
|
continue;
|
||||||
}
|
}
|
||||||
if ("" == pattern) {
|
if ("" == pattern) {
|
||||||
pattern += ".*(";
|
pattern += "(";
|
||||||
} else {
|
} else {
|
||||||
pattern += "|";
|
pattern += "|";
|
||||||
}
|
}
|
||||||
pattern += "\\b" +
|
pattern += "\\b" +
|
||||||
token.replace(/\*/g, "[A-Za-z]*") + "\\b";
|
token.replace(/\*/g, "[A-Za-z]*") + "\\b";
|
||||||
}
|
}
|
||||||
pattern += ").*";
|
pattern += ")";
|
||||||
|
|
||||||
_stopExp = new RegExp(pattern, "i");
|
_stopExp = new RegExp(pattern, "i");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user