From 22214ffdf97b6f8ff36cbb48c554d7abb308cca4 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 24 Mar 2015 09:57:44 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@31869 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/wp-emoji.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/js/wp-emoji.js b/src/wp-includes/js/wp-emoji.js index 34b613b119..9c3b8a2509 100644 --- a/src/wp-includes/js/wp-emoji.js +++ b/src/wp-includes/js/wp-emoji.js @@ -147,7 +147,7 @@ } if ( ! supportsFlagEmoji && supportsEmoji && - ! /^1f1(?:e[6-9a-f]|f[1-9a-f])-1f1(?:e[6-9a-f]|f[1-9a-f])$/.test( icon ) ) { + ! /^1f1(?:e[6-9a-f]|f[0-9a-f])-1f1(?:e[6-9a-f]|f[0-9a-f])$/.test( icon ) ) { return false; }