add icon regex
This commit is contained in:
parent
d76753cca7
commit
3e341b5745
1 changed files with 3 additions and 0 deletions
|
|
@ -107,6 +107,9 @@ export default function GenericNode({
|
||||||
|
|
||||||
const nameEditable = data.node?.flow || data.type === "CustomComponent";
|
const nameEditable = data.node?.flow || data.type === "CustomComponent";
|
||||||
|
|
||||||
|
const emojiRegex = /\p{Emoji}/u;
|
||||||
|
const isEmoji = emojiRegex.test(data?.node?.icon!);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<NodeToolbar>
|
<NodeToolbar>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue