Need private packages and team management tools?Check out npm Teams »

@regexp-extra/variation-selector

0.1.1 • Public • Published

RegExp for matching Unicode variation selectors.

const VARIATION_SELECTOR = require('@regexp-extra/variant-selector');
// -> regular expression (global)
 
 
VARIATION_SELECTOR.test('cake');
// false
 
var str = '*☀︎☀️';
VARIATION_SELECTOR.test(str);
// true
 
str.match(VARIATION_SELECTOR);
// [ '\uFE0E', '\uFE0F' ] (not visible)

NPM

credits: taken directly from shinnn/variation-selector-regex.

Install

npm i @regexp-extra/variation-selector

DownloadsWeekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

1.25 kB

Total Files

3

Last publish

Collaborators

  • avatar