mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-07 18:31:33 +01:00
Use a regex that actually works
This commit is contained in:
parent
bd336b0710
commit
96cb1ddff5
@ -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…
x
Reference in New Issue
Block a user