Sha256: 27fbe91b035f248580c656011c299c7762123fde6b0097a300a52d171c095b1f

Contents?: true

Size: 240 Bytes

Versions: 708

Compression:

Stored size: 240 Bytes

Contents

export const isValidEmoji = (emoji: string) => {
    // Using regular expression to check if the string is a valid emoji/emoji Unicode
    const emojiRegex = /^(\p{Emoji}|\uFE0F|\u200D|\u20E3)+$/u;
    return emojiRegex.test(emoji);
  };
  

Version data entries

708 entries across 708 versions & 1 rubygems

Version Path
playbook_ui-13.9.0.pre.alpha.play845allkitsbytypes1268 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.9.0.pre.alpha.play845allkitsbytypes1266 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.9.0.pre.alpha.play845allkitsbytypes1264 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.9.0.pre.alpha.play845allkitsbytypes1263 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.9.0.pre.alpha.play845allkitsbytypes1262 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.9.0.pre.alpha.PLAY962SingleSelect1261 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.9.0.pre.alpha.play845allkitsbytypes1260 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.9.0 app/pb_kits/playbook/utilities/validEmojiChecker.ts