chatfilter: fix matching lt/gt
These are encoded as <lt> and <gt> and so require the patterns to match those, which is unintuitive
This commit is contained in:
@@ -320,7 +320,9 @@ public class ChatFilterPlugin extends Plugin
|
||||
String censorMessage(final String username, final String message)
|
||||
{
|
||||
String strippedMessage = jagexPrintableCharMatcher.retainFrom(message)
|
||||
.replace('\u00A0', ' ');
|
||||
.replace('\u00A0', ' ')
|
||||
.replaceAll("<lt>", "<")
|
||||
.replaceAll("<gt>", ">");
|
||||
String strippedAccents = stripAccents(strippedMessage);
|
||||
assert strippedMessage.length() == strippedAccents.length();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user