Properly strip ZWJ in isOnlyEmoji()
This commit is contained in:
parent
2b45b7fea3
commit
256bd157ed
1 changed files with 2 additions and 2 deletions
|
@ -406,8 +406,8 @@ Zotero.Utilities.Internal = {
|
|||
},
|
||||
|
||||
isOnlyEmoji: function (str) {
|
||||
// Remove emoji and Variation Selector-16 and see if anything's left
|
||||
const re = /\p{Extended_Pictographic}|\uFE0F/gu;
|
||||
// Remove emoji, Zero Width Joiner, and Variation Selector-16 and see if anything's left
|
||||
const re = /\p{Extended_Pictographic}|\u200D|\uFE0F/gu;
|
||||
return !str.replace(re, '');
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue