Closed junjizhi closed 4 years ago
This is the difference between index.js
and text.js
. From the README:
To match emoji in their textual representation as well (i.e. emoji that are not
Emoji_Presentation
symbols and that aren’t forced to render as emoji by a variation selector), require thetext
regex: [...]
https://github.com/mathiasbynens/emoji-regex/blob/master/src/index.js:
https://github.com/mathiasbynens/emoji-regex/blob/master/src/text.js:
Notice it is missing a
?
in the first regex besides\uFE0F