1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-23 00:55:58 +01:00

Allow brackets and ampersands in URLs.

This commit is contained in:
Juliusz Chroboczek 2020-11-09 00:11:55 +01:00
parent 3c607a6e72
commit 47c90037f3

View file

@ -1347,7 +1347,7 @@ function gotPermissions(perms) {
displayMessage("Press Present to enable your camera or microphone"); 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 * @param {string} line