diff --git a/src/renderer/src/utils/index.ts b/src/renderer/src/utils/index.ts index 342b3870..c17a922b 100644 --- a/src/renderer/src/utils/index.ts +++ b/src/renderer/src/utils/index.ts @@ -177,7 +177,7 @@ export function removeQuotes(str) { export function removeSpecialCharacters(str: string) { // First remove newlines and quotes, then remove other special characters - return str.replace(/[\n"]/g, '').replace(/[\p{M}\p{N}\p{P}\p{S}]/gu, '') + return str.replace(/[\n"]/g, '').replace(/[\p{M}\p{P}]/gu, '') } export function removeSpecialCharactersForTopicName(str: string) {