Use a regex that actually works
This commit is contained in:
parent
2d410c91ac
commit
45ef57d86f
1 changed files with 1 additions and 1 deletions
|
@ -87,5 +87,5 @@ EMOJIBASE.forEach(emoji => {
|
||||||
* @returns {string} stripped string
|
* @returns {string} stripped string
|
||||||
*/
|
*/
|
||||||
function stripVariation(str) {
|
function stripVariation(str) {
|
||||||
return str.replace("\uFE00-\uFE0F", "");
|
return str.replace(/[\uFE00-\uFE0F]/, "");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue