Use a regex that actually works

pull/21833/head
David Baker 2020-01-07 20:41:19 +00:00
parent bd336b0710
commit 96cb1ddff5
1 changed files with 1 additions and 1 deletions

View File

@ -87,5 +87,5 @@ EMOJIBASE.forEach(emoji => {
* @returns {string} stripped string
*/
function stripVariation(str) {
return str.replace("\uFE00-\uFE0F", "");
return str.replace(/[\uFE00-\uFE0F]/, "");
}