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.14.0.pre.alpha.play1120lintdatepicker1797 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.15.0 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.14.0.pre.alpha.PLAY1109bugdisplaypropblocksfontcolor1784 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.14.0.pre.alpha.play1106filter1751 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.14.0.pre.alpha.play1106filter1748 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.14.0 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.13.0.pre.alpha.PLAY1097linterenhancedelement1728 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.13.0.pre.alpha.play10821727 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.13.0.pre.alpha.play10821726 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.13.0.pre.alpha.play10221678 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.13.0.pre.alpha.PLAY1090csstokens1675 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.13.0.pre.alpha.play900startratingasinput1657 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.13.0 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.12.0.pre.alpha.PLAY880cardkithighlightzindex1655 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.12.0.pre.alpha.PLAY1081exportingtypes1627 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.12.0.pre.alpha.PLAY1081exportingtypes1626 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1624 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1623 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.12.0.pre.alpha.play900startratingasinput1612 app/pb_kits/playbook/utilities/validEmojiChecker.ts
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1611 app/pb_kits/playbook/utilities/validEmojiChecker.ts