mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-10 10:15:37 -05:00
more false positive fixes
This commit is contained in:
@@ -144,7 +144,7 @@ Chat.registerMonitor('evasion', {
|
||||
monitor(line, room, user, message, lcMessage, isStaff) {
|
||||
let [regex, word, reason] = line;
|
||||
// Remove spaces and obvious false positives
|
||||
lcMessage = lcMessage.replace(/niger/g, '');
|
||||
lcMessage = lcMessage.replace(/niger/g, '').replace(/fagot/g, '');
|
||||
lcMessage = lcMessage.replace(/[\s-_]/g, '');
|
||||
const match = lcMessage.match(regex);
|
||||
if (match) {
|
||||
|
||||
Reference in New Issue
Block a user