From 47c90037f36d4e519bbf5a9e42e79ad619cba329 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Mon, 9 Nov 2020 00:11:55 +0100 Subject: [PATCH] Allow brackets and ampersands in URLs. --- static/sfu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/sfu.js b/static/sfu.js index ef08aa6..49eaa94 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -1347,7 +1347,7 @@ function gotPermissions(perms) { displayMessage("Press Present to enable your camera or microphone"); } -const urlRegexp = /https?:\/\/[-a-zA-Z0-9@:%/._\\+~#=?]+[-a-zA-Z0-9@:%/_\\+~#=]/g; +const urlRegexp = /https?:\/\/[-a-zA-Z0-9@:%/._\\+~#&()=?]+[-a-zA-Z0-9@:%/_\\+~#&()=]/g; /** * @param {string} line