|
1 tháng trước cách đây | |
---|---|---|
.. | ||
es2015 | 1 tháng trước cách đây | |
README.md | 1 tháng trước cách đây | |
RGI_Emoji.js | 1 tháng trước cách đây | |
index.js | 1 tháng trước cách đây | |
package.json | 1 tháng trước cách đây | |
text.js | 1 tháng trước cách đây |
emoji-regex offers a regular expression to match all emoji symbols and sequences (including textual representations of emoji) as per the Unicode Standard.
This repository contains a script that generates this regular expression based on Unicode data. Because of this, the regular expression can easily be updated whenever new emoji are added to the Unicode standard.
Via npm:
npm install emoji-regex
In Node.js:
```js const emojiRegex = require('emoji-regex/RGI_Emoji.js'); // Note: because the regular expression has the global flag set, this module // exports a function that returns the regex rather than exporting the regular // expression itself, to make it impossible to (accidentally) mutate the // original regular expression.
con