From a2ac51929d1bb1bc41893074af5f04148d99d20a Mon Sep 17 00:00:00 2001 From: HF Date: Mon, 18 May 2020 08:14:24 +0200 Subject: [PATCH] end ban of cyrillic in en channel --- src/core/ChatProvider.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/core/ChatProvider.js b/src/core/ChatProvider.js index a214f25..f24ce29 100644 --- a/src/core/ChatProvider.js +++ b/src/core/ChatProvider.js @@ -21,7 +21,6 @@ export class ChatProvider { this.history.push([]); } this.caseCheck = /^[A-Z !.]*$/; - this.cyrillic = new RegExp('[\u0436-\u043B]'); this.filters = [ { regexp: /ADMIN/gi, @@ -82,10 +81,6 @@ export class ChatProvider { return 'Stop shouting'; } - if (message.match(this.cyrillic) && channelId === 0) { - return 'Please use int channel'; - } - for (let i = 0; i < this.filters.length; i += 1) { const filter = this.filters[i]; const count = (message.match(filter.regexp) || []).length;