Remove invisible characters from the name #1593

This commit is contained in:
DianaXWiki 2024-08-27 14:13:36 +03:00
parent 777c443475
commit a4d24dfb43
1 changed files with 1 additions and 0 deletions

View File

@ -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+/);