diff --git a/src/util/Strings.ts b/src/util/Strings.ts index f366c7e2..348e0b24 100644 --- a/src/util/Strings.ts +++ b/src/util/Strings.ts @@ -10,7 +10,8 @@ export const baseCleanup = (str: string) => str.toLowerCase().trim(); export const enhancedCleanup = (str: string): string => baseCleanup(str) - .replace(/[^a-zA-Z0-9\\s]+/g, ' ') + .normalize('NFKC') + .replace(/[^\p{L}\p{N}]+/gu, ' ') .trim(); export const reverseString = (str: string, separator: string = ''): string =>