Update isLastCharPunctuation function in util.ts

This commit is contained in:
kwaroran
2024-04-19 13:16:06 +09:00
parent 0ff98deb9b
commit bea4c5386b

View File

@@ -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