From e49f817272b6dffa6564b7d46bbd3d614c7feed3 Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Thu, 24 Feb 2022 17:57:54 -0300 Subject: [PATCH] add cyrillic alphabet to regex expression --- app/containers/MessageBox/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/containers/MessageBox/index.tsx b/app/containers/MessageBox/index.tsx index 3c924df6f..0a69c9e17 100644 --- a/app/containers/MessageBox/index.tsx +++ b/app/containers/MessageBox/index.tsx @@ -493,7 +493,7 @@ class MessageBox extends Component { const msg = this.text; const { start, end } = this.selection; const cursor = Math.max(start, end); - const regexp = /([a-z0-9._-]+)$/im; + const regexp = /([a-z0-9._-wа-я]+)$/im; let result = msg.substr(0, cursor).replace(regexp, ''); // Remove the ! after select the canned response if (trackingType === MENTIONS_TRACKING_TYPE_CANNED) {