Skip to content

Commit cea45a6

Browse files
committed
Upgrade to Twemoji 17.0.1.
1 parent 4cf0fcd commit cea45a6

File tree

3 files changed

+9
-25
lines changed

3 files changed

+9
-25
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ module.exports = function(grunt) {
11591159
}
11601160

11611161
// Fetch a list of the files that Twemoji supplies.
1162-
query = 'query={repository(owner: "jdecked", name: "twemoji") {object(expression: "v16.0.1:assets/svg") {... on Tree {entries {name}}}}}';
1162+
query = 'query={repository(owner: "jdecked", name: "twemoji") {object(expression: "v17.0.1:assets/svg") {... on Tree {entries {name}}}}}';
11631163
files = spawn( 'gh', [ 'api', 'graphql', '-f', query] );
11641164

11651165
if ( 0 !== files.status ) {

src/js/_enqueues/lib/emoji-loader.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,20 +271,20 @@ function browserSupportsEmoji( context, type, emojiSetsRenderIdentically, emojiR
271271
return ! isIdentical;
272272
case 'emoji':
273273
/*
274-
* Does Emoji 16.0 cause the browser to go splat?
274+
* Is there a large, hairy, humanoid mythical creature living in the browser?
275275
*
276-
* To test for Emoji 16.0 support, try to render a new emoji: Splatter.
276+
* To test for Emoji 17.0 support, try to render a new emoji: Hairy Creature.
277277
*
278-
* The splatter emoji is a single code point emoji. Testing for browser support
279-
* required testing the center point of the emoji to see if it is empty.
278+
* The hairy creature emoji is a single code point emoji. Testing for browser
279+
* support required testing the center point of the emoji to see if it is empty.
280280
*
281-
* 0xD83E 0xDEDF (\uD83E\uDEDF) == 🫟 Splatter.
281+
* 0xD83E 0xDEDF (\uD83E\u1FAC8) == 🫟 Splatter.
282282
*
283283
* When updating this test, please ensure that the emoji is either a single code point
284284
* or switch to using the emojiSetsRenderIdentically function and testing with a zero-width
285285
* joiner vs a zero-width space.
286286
*/
287-
const notSupported = emojiRendersEmptyCenterPoint( context, '\uD83E\uDEDF' );
287+
const notSupported = emojiRendersEmptyCenterPoint( context, '\uD83E\u1FAC8' );
288288
return ! notSupported;
289289
}
290290

0 commit comments

Comments
 (0)