[wp-trac] [WordPress Trac] #35293: Emoji Regex in wp_encode_emoji() is wildly inaccurate
WordPress Trac
noreply at wordpress.org
Mon Jul 18 09:34:51 UTC 2016
#35293: Emoji Regex in wp_encode_emoji() is wildly inaccurate
--------------------------+-----------------------------
Reporter: pento | Owner: pento
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future Release
Component: Emoji | Version: 4.2
Severity: normal | Resolution:
Keywords: emoji | Focuses:
--------------------------+-----------------------------
Comment (by pento):
I don't have any good options at the moment.
The best I have is to add a `grunt build` rule to update the regex based
on the current regex in `twemoji.js`. That's pretty fragile, though -
changes to `twemoji.js`'s formatting would break it. In theory, it would
only break when updating `twemoji.js`, so maybe it wouldn't be too bad?
This would also be a good time for precommit rules - if the `twemoji.js`
regex is updated, but the corresponding PHP one isn't, die horribly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35293#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list