diff --git a/lib/node_modules/@stdlib/string/prev-grapheme-cluster-break/lib/main.js b/lib/node_modules/@stdlib/string/prev-grapheme-cluster-break/lib/main.js index 5395038e6e4c..aeeec3ddbe5b 100644 --- a/lib/node_modules/@stdlib/string/prev-grapheme-cluster-break/lib/main.js +++ b/lib/node_modules/@stdlib/string/prev-grapheme-cluster-break/lib/main.js @@ -99,7 +99,9 @@ function prevGraphemeClusterBreak( str, fromIndex ) { // Get the corresponding grapheme break and emoji properties: breaks.push( breakProperty( cp ) ); - emoji.push( emojiProperty( cp ) ); + if (!(cp >= 0x1F3FB && cp <= 0x1F3FF)) { // Check if the character is not a skin tone modifier + emoji.push( emojiProperty( cp ) ); + } ans = -1; for ( i = 1; i <= idx; i++ ) { @@ -114,7 +116,9 @@ function prevGraphemeClusterBreak( str, fromIndex ) { // Get the corresponding grapheme break and emoji properties: breaks.push( breakProperty( cp ) ); - emoji.push( emojiProperty( cp ) ); + if (!(cp >= 0x1F3FB && cp <= 0x1F3FF)) { // Check if the character is not a skin tone modifier + emoji.push( emojiProperty( cp ) ); + } // Determine if we've encountered a grapheme cluster break... if ( breakType( breaks, emoji ) > 0 ) {