mirror of
https://github.com/twitter/twemoji.git
synced 2024-06-15 03:35:16 +00:00
expose emoji unicode regexp that is internally used for emoji parsing (read only)
This commit is contained in:
parent
57423ac791
commit
ea43c4f184
@ -502,6 +502,10 @@ function createTwemoji(re) {
|
||||
|
||||
/*jshint maxparams:4 */
|
||||
|
||||
// RegExp based on emoji's official Unicode standards
|
||||
// http://www.unicode.org/Public/UNIDATA/EmojiSources.txt
|
||||
var re = /twemoji/;
|
||||
|
||||
var
|
||||
// the exported module object
|
||||
twemoji = {
|
||||
@ -561,6 +565,9 @@ function createTwemoji(re) {
|
||||
toCodePoint: toCodePoint
|
||||
},
|
||||
|
||||
// expose emoji unicode RegExp that is internally used for parsing (read only)
|
||||
re: re,
|
||||
|
||||
|
||||
/////////////////////////
|
||||
// methods //
|
||||
@ -711,10 +718,6 @@ function createTwemoji(re) {
|
||||
'"': '"'
|
||||
},
|
||||
|
||||
// RegExp based on emoji's official Unicode standards
|
||||
// http://www.unicode.org/Public/UNIDATA/EmojiSources.txt
|
||||
re = /twemoji/,
|
||||
|
||||
// avoid runtime RegExp creation for not so smart,
|
||||
// not JIT based, and old browsers / engines
|
||||
UFE0Fg = /\uFE0F/g,
|
||||
|
Loading…
Reference in New Issue
Block a user