From 3e341b5745144af5639c277622b02e0995d2814a Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Wed, 14 Feb 2024 10:26:55 -0300 Subject: [PATCH] add icon regex --- src/frontend/src/CustomNodes/GenericNode/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index b8d8f5a9d..a1f011aff 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -107,6 +107,9 @@ export default function GenericNode({ const nameEditable = data.node?.flow || data.type === "CustomComponent"; + const emojiRegex = /\p{Emoji}/u; + const isEmoji = emojiRegex.test(data?.node?.icon!); + return ( <>