From 67bdb8a65a5b6ba40bca4fad06e95ab7f2347d9d Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 25 Feb 2016 12:35:11 +0100 Subject: [PATCH] fix a bad regex that occasionally threw an error 'nothing to repeat' --- www/common/realtime-input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/realtime-input.js b/www/common/realtime-input.js index 8651d7626..e4ddf16e6 100644 --- a/www/common/realtime-input.js +++ b/www/common/realtime-input.js @@ -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; }));