-
Notifications
You must be signed in to change notification settings - Fork 533
Minified lib has broken RegExps #642
Comments
@klaslundberg can you provide some more details about where you see these error out? I'm not able to recreate the issue. |
Everything works fine when I use the uncompressed file. When I use the minified the console shows a very long message beginning with:
If I compare the regUnicode in the minified and the uncompressed file, the backslashes are no longer escaped in the string, which shows on the end tag for object and span.
|
I'm also experiencing this, thanks for making the issue 👍 thought I was going crazy. I'm not seeing an error though, interestingly, the regular expression just doesn't "work". Like if I call So perhaps whatever I am seeing is slightly different 😞 |
Thanks for the clarification, I'll get this fixed up for our next release. |
FWIW the issue that I mentioned was resolved by making a change on my end, so perhaps not directly related to emojione's js. Setting |
I'm a bit confused though about the regular expression in general, I guess this isn't documented as part of the emojione js api but I'm finding it handy so have been using it 🙃 perhaps that's where my problem is 😛 . Anyway -
|
This is fixed in the 5.0 release https://github.com/joypixels/emoji-toolkit/releases/tag/5.0.0. |
The minified (uglified) js-file is broken because of invalid RegExps. The escaping for
ns.regShortNames
,ns.regAscii
andns.regUnicode
is stripped and therefore they become invalid.The text was updated successfully, but these errors were encountered: