From bea4c5386b2c5197da8f8afdb5d8641fd7be4f66 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Fri, 19 Apr 2024 13:16:06 +0900 Subject: [PATCH] Update isLastCharPunctuation function in util.ts --- src/ts/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/util.ts b/src/ts/util.ts index 453ef253..c93d63f2 100644 --- a/src/ts/util.ts +++ b/src/ts/util.ts @@ -469,7 +469,7 @@ export function isLastCharPunctuation(s:string){ const lastChar = s.trim().at(-1) const punctuation = [ '.', '!', '?', '。', '!', '?', '…', '@', '#', '$', '%', '^', '&', '*', '(', ')', '-', '_', '+', '=', '{', '}', '[', ']', '|', '\\', ':', ';', '<', '>', ',', '.', '/', '~', '`', ' ', - '¡', '¿', '‽', '⁉' + '¡', '¿', '‽', '⁉', "'", '"' ] if(lastChar && !(punctuation.indexOf(lastChar) !== -1 //spacing modifier letters