fix(nc-gui): update workspace icon issue from admin panel

This commit is contained in:
Ramesh Mane
2024-11-20 17:11:12 +00:00
parent 3c2b7a7245
commit 98bfc9c8f3
5 changed files with 21 additions and 17 deletions

View File

@@ -55,3 +55,7 @@ export const ncArrayFrom = <T>(
): T[] => {
return Array.from({ length }, (_, i) => contentCallback(i))
}
export const isUnicodeEmoji = (emoji: string) => {
return !!emoji?.match(/(\p{Emoji}|\p{Extended_Pictographic})/gu)
}