fix a bad regex that occasionally threw an error

'nothing to repeat'
This commit is contained in:
ansuz
2016-02-25 12:35:11 +01:00
parent e87a4599a4
commit 67bdb8a65a

View File

@@ -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;
}));