emoji icon indicating copy to clipboard operation
emoji copied to clipboard

Regexp is slow -- could use codepoint ranges for consecutive emojis

Open mjwillson opened this issue 8 years ago • 1 comments

Currently the regexp is quite slow, likely due to it containing a separate union term for each emoji. A lot of the emojis are consecutive codepoints, and some like the national flag emojis could be specified concisely as [\U0001F1E6-\U0001F1FF]{2}

mjwillson avatar Nov 09 '15 13:11 mjwillson

Should this be closed now get_emoji_regexp has been removed in version 2.0?

https://carpedm20.github.io/emoji/docs/#regular-expression

hugovk avatar Aug 30 '22 10:08 hugovk