mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-21 17:41:25 -08:00
add blank spaces and fix regression
This commit is contained in:
1 parent
a2c6eeb1b7
commit
3e234492fa
1 file changed
+1
-2
@@ -530,8 +530,7 @@ export const getMemberDisplayName = (
|
||||
const name = member?.rawDisplayName;
|
||||
if (name === userId) return undefined;
|
||||
if (
|
||||
name?.replace(/[\p{Cc}\p{Cf}\u180B-\u180F\uFE00-\uFE0F\uE0100-\uE01EF\u200B-\u200D]/gu, '')
|
||||
.length === 0
|
||||
name?.replace(/[\p{Cc}\p{Cf}\u180B-\u180F\uFE00-\uFE0F\u200B-\u200D\t\n ]/gu, '').length === 0
|
||||
)
|
||||
return undefined;
|
||||
return name;
|
||||
|
||||
Reference in new issue
Block a user