From 0322a27e9dd7270ee66e0161be2056f0b64f1769 Mon Sep 17 00:00:00 2001 From: statiolake Date: Sat, 21 Sep 2024 00:43:08 +0900 Subject: [PATCH] fix(list): remove debugging console.log() --- src/list/prompt.ts | 1 - src/util/string.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/list/prompt.ts b/src/list/prompt.ts index 7fbb2b48376..70c95348c8b 100644 --- a/src/list/prompt.ts +++ b/src/list/prompt.ts @@ -244,7 +244,6 @@ function getLastWordRemovedText(text: string): string { // Remove last contiguous characters of the same unicode class. const last = getUnicodeClass(res[res.length - 1]) - console.log("unicode class of", res[res.length - 1], "is", last) while (res !== "" && getUnicodeClass(res[res.length - 1]) === last) { res = res.slice(0, res.length - 1) } diff --git a/src/util/string.ts b/src/util/string.ts index 15f408f8835..4bd9b411829 100644 --- a/src/util/string.ts +++ b/src/util/string.ts @@ -431,7 +431,6 @@ export function getUnicodeClass(char: string): UnicodeClass { if (char == null) return "other" const charCode = char.charCodeAt(0) - console.log("char code is", charCode) if (charCode == null) return "other" // Check for ASCII character