From c0935c1c0d1bc95e0d0ba185fb2bc42bbb6b7ec6 Mon Sep 17 00:00:00 2001 From: Gleidson Daniel Silva Date: Thu, 24 Feb 2022 22:26:01 -0300 Subject: [PATCH] Update index.tsx --- 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 e72ab76b1..f7eda04c1 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 = /([^@]+)$/; + const regexp = /(?!^)[^]/g; let result = msg.substr(0, cursor).replace(regexp, ''); // Remove the ! after select the canned response if (trackingType === MENTIONS_TRACKING_TYPE_CANNED) {