Package Exports
- emojibase-regex
- emojibase-regex/emoji
- emojibase-regex/emoji.js
- emojibase-regex/emoticon
- emojibase-regex/emoticon.js
- emojibase-regex/index.js
- emojibase-regex/shortcode
- emojibase-regex/shortcode.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (emojibase-regex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Emojibase Regex
Install the package.
yarn add emojibase-regex
Import and use the RegExp
pattern.
import EMOJI_REGEX from 'emojibase-regex';
import EMOTICON_REGEX from 'emojibase-regex/emoticon';
import SHORTCODE_REGEX from 'emojibase-regex/shortcode';
import SHORTCODE_NATIVE_REGEX from 'emojibase-regex/shortcode-native';
`🏰`.match(EMOJI_REGEX);
':)'.match(EMOTICON_REGEX);
':castle:'.match(SHORTCODE_REGEX);
':гвинея:'.match(SHORTCODE_NATIVE_REGEX);