[wp-trac] [WordPress Trac] #35293: Emoji Regex in wp_encode_emoji() is wildly inaccurate
WordPress Trac
noreply at wordpress.org
Thu Aug 3 04:18:58 UTC 2017
#35293: Emoji Regex in wp_encode_emoji() is wildly inaccurate
--------------------------+-----------------------
Reporter: pento | Owner: pento
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.9
Component: Emoji | Version: 4.2
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------
Comment (by pento):
== Test 7.1
Inspired by 6.1, use `preg_replace()` for replacing the emoji characters,
instead of `str_replace()`.
'''Data''': https://travis-ci.org/pento/test-41501/builds/260462732
'''Analysis''':
- The same speed or slower than Test 7 across almost all cases.
'''Conclusion''': `preg_replace()` was not useful here, not worth using.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35293#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list