Closed mqliutie closed 5 months ago
From the README:
const emojiRegex = require('emoji-regex');
// 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.
See https://2ality.com/2013/08/regexp-g.html#flag-g-problem for more details on this problem.
Sry~~~