Make WordPress Core

Changeset 31869


Ignore:
Timestamp:
03/24/2015 09:57:44 AM (9 years ago)
Author:
pento
Message:

Emoji: The regex for checking if the current glyph is a flag was checking the incorrect byte range, which was causing the South Korean flag to not be replaced in Firefox.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/wp-emoji.js

    r31788 r31869  
    148148
    149149                    if ( ! supportsFlagEmoji && supportsEmoji &&
    150                         ! /^1f1(?:e[6-9a-f]|f[1-9a-f])-1f1(?:e[6-9a-f]|f[1-9a-f])$/.test( icon ) ) {
     150                        ! /^1f1(?:e[6-9a-f]|f[0-9a-f])-1f1(?:e[6-9a-f]|f[0-9a-f])$/.test( icon ) ) {
    151151
    152152                        return false;
Note: See TracChangeset for help on using the changeset viewer.