Closed mislav closed 8 years ago
For the same reason, it's not safe to use the emoji ID to generate a classname like this gh-emoji-${id}
because emojis can contain +
and -
characters.
Thanks @mislav! :) I'm working on fix and tests for our new regex to avoid this type of bugs in future :) Regarding your second comment, I proposed that we move emojis names from class tag. :)
Fixed on v0.2.4
, more info https://github.com/zzarcon/gh-emoji/pull/18. Thanks for the help @mislav ^^
This is because the
[\w\.]+
regex doesn't allow a literal+
character.I suggest the following regex:
:([\w+-]+):