mathiasbynens / emoji-regex

A regular expression to match all Emoji-only symbols as per the Unicode Standard.
https://mths.be/emoji-regex
MIT License
1.74k stars 174 forks source link

use the generated output #12

Closed patrickkettner closed 7 years ago

patrickkettner commented 7 years ago

pretty sure this is a mistake, but apologies if I am mistaken. note the following

const current = require('emoji-regex')
const fixed = require('emoji-regex/dist')

current().test('\u{1F923}') // false
fixed().test('\u{1F923}') // true
mxstbr commented 7 years ago

Can confirm this behaviour. /dist handles 🤣 fine, while the normal import doesn't.

mathiasbynens commented 7 years ago

This is an artefact from the recent Big Rewrite™. Thanks for spotting and fixing this 👍