JSPM

  • Created
  • Published
  • Downloads 276192
  • Score
    100M100P100Q184537F
  • License MIT

Evergreen emoji regex patterns.

Package Exports

  • emojibase-regex
  • emojibase-regex/emoticon
  • emojibase-regex/shortcode

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';

`🏰`.match(EMOJI_REGEX);
':)'.match(EMOTICON_REGEX);
':castle:'.match(SHORTCODE_REGEX);

Please refer to the official documentation for more information.