1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-12-27 21:15:19 +00:00

Use the generated emoji regex from Twitter internal

This commit is contained in:
Nathan Downs 2018-06-04 14:58:46 -07:00
parent 57423ac791
commit c6611fd74c
2 changed files with 2 additions and 1 deletions

View File

@ -1057,7 +1057,7 @@ function createTwemoji(re) {
// drop current indentation
.replace(/^ /gm, '')
// add the RegExp in the right place
.replace('re = /twemoji/', 're = /' + re + '/g')
.replace('re = /twemoji/', `re = ${fs.readFileSync(path.join(__dirname, 'regex')).toString().trim()}`)
// add the full license
.replace('/*! (C) Twitter Inc. */',
'/*! (C) Twitter Inc. *//*\n' +

1
2/utils/regex Normal file

File diff suppressed because one or more lines are too long