mirror of
https://github.com/twitter/twemoji.git
synced 2024-06-15 03:35:16 +00:00
Use the generated emoji regex from Twitter internal
This commit is contained in:
parent
57423ac791
commit
c6611fd74c
@ -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
1
2/utils/regex
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user