Update dependencies and fix whitespace formatting in isTTSEnabled function in tts.ts

This commit is contained in:
n4ze3m
2024-04-15 11:32:30 +05:30
parent 476323d928
commit c914233610
11 changed files with 302 additions and 115 deletions

4
src/utils/clean.ts Normal file
View File

@@ -0,0 +1,4 @@
export const cleanUnwantedUnicode = (text: string) => {
const UNICODE_REGEX = /[\u200B-\u200D\uFEFF]/g
return text.replace(UNICODE_REGEX, "").trim()
}