1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

respect signature

This commit is contained in:
Bruno Windels
2020-08-04 15:43:57 +02:00
parent 7116ad9f58
commit a9a4ba33aa

View File

@@ -664,6 +664,7 @@ export function removeHiddenChars(str: string): string {
if (typeof str === "string") {
return unhomoglyph(str.normalize('NFD').replace(removeHiddenCharsRegex, ''));
}
return "";
}
// Regex matching bunch of unicode control characters and otherwise misleading/invisible characters.