Closed devongovett closed 7 years ago
@devongovett This looks great, as does regexgen! 👍
The CI build is failing because of the old support matrix. I’ll drop support for old Node.js versions first and then merge this!
Done. Could you please rebase this?
Done!
regexgen is a package I wrote which generates regular expressions from a list of strings, similar to
regex-trie
. However, it applies some additional algorithms to generate smaller regular expressions. You can read about how it works in the readme.For
emoji-regex
, the generated regex goes from 3.55 KB to 2.85 KB in size (a ~20% reduction). Also, the build script is simpler since regexgen uses regenerate for character class generation already, so no need to generate two separate parts.