Update dependencies and fix whitespace formatting in isTTSEnabled function in tts.ts
This commit is contained in:
4
src/utils/clean.ts
Normal file
4
src/utils/clean.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const cleanUnwantedUnicode = (text: string) => {
|
||||
const UNICODE_REGEX = /[\u200B-\u200D\uFEFF]/g
|
||||
return text.replace(UNICODE_REGEX, "").trim()
|
||||
}
|
||||
Reference in New Issue
Block a user