mirror of https://github.com/xwiki-labs/cryptpad
Remove invisible characters from the name #1593
This commit is contained in:
parent
777c443475
commit
a4d24dfb43
|
@ -132,6 +132,7 @@ define([
|
|||
}
|
||||
else {
|
||||
name = name.replace(emojiWithZWJRegex, '');
|
||||
name = name.replace(/[\uFE0F\u200D\u2060]/g, '');
|
||||
name = name.trim();
|
||||
}
|
||||
var parts = name.split(/\s+/);
|
||||
|
|
Loading…
Reference in New Issue