mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
fix a bad regex that occasionally threw an error
'nothing to repeat'
This commit is contained in:
parent
e87a4599a4
commit
67bdb8a65a
@ -224,7 +224,7 @@ define([
|
||||
}
|
||||
});
|
||||
|
||||
var whoami = new RegExp(userName.replace(/\/\+/g, function (c) {
|
||||
var whoami = new RegExp(userName.replace(/[\/\+]/g, function (c) {
|
||||
return '\\' +c;
|
||||
}));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user