mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
Use a regex that actually works
This commit is contained in:
parent
bd336b0710
commit
96cb1ddff5
1 changed files with 1 additions and 1 deletions
|
@ -87,5 +87,5 @@ EMOJIBASE.forEach(emoji => {
|
|||
* @returns {string} stripped string
|
||||
*/
|
||||
function stripVariation(str) {
|
||||
return str.replace("\uFE00-\uFE0F", "");
|
||||
return str.replace(/[\uFE00-\uFE0F]/, "");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue