fixed issues with certain characters in user names
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
||||
function userInfoToClient(userInfo) {
|
||||
for (const user in userInfo) {
|
||||
const userId = user.replaceAll(" ","_");
|
||||
re = new RegExp("\\W","g");
|
||||
const userId = user.replaceAll(re,"_");
|
||||
if ($("#userListPanel").find("#"+userId).length >= 1) {
|
||||
//update buzzer icon of existing user
|
||||
$("#userListPanel").find("#"+userId).find("img").attr("data-buzzerId",userInfo[user].buzzerId);
|
||||
|
||||
Reference in New Issue
Block a user