From 67f5f497a94de9fb1f18ad7224b14e696aa43bd1 Mon Sep 17 00:00:00 2001 From: soaibsafi Date: Sat, 9 Nov 2024 15:44:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9BFixed=20#14=20issue=20with=20ascii?= =?UTF-8?q?=20char=20recognition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/assets/ts/toolExecutor/limbooleExecutor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/assets/ts/toolExecutor/limbooleExecutor.ts b/frontend/src/assets/ts/toolExecutor/limbooleExecutor.ts index 9f290f7..9d864e9 100644 --- a/frontend/src/assets/ts/toolExecutor/limbooleExecutor.ts +++ b/frontend/src/assets/ts/toolExecutor/limbooleExecutor.ts @@ -56,7 +56,7 @@ export const executeLimboole = async ( }; const findNonAscii = (str: string) => { - const regex = /[^\x20-\x7E]/g; + const regex = /[^\x00-\x7F]/g; const match = regex.exec(str); if (!match) return -1; // find the line and column and the non-ascii character