repo: janusweb action: commit revision: path_from: revision_from: e950d7c92c89c50175d2b4051e6dd4c6bbaf0b1f: path_to: revision_to:
commit e950d7c92c89c50175d2b4051e6dd4c6bbaf0b1f Author: James BaicoianuDate: Thu Oct 22 23:12:19 2020 -0700 URL regex grouping fix diff --git a/scripts/room.js b/scripts/room.js
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -2469,7 +2469,7 @@ console.log('dispatch to parent', event, this, event.target);
this.getFullRoomURL = function(url) {
if (!url) url = this.url;
if (url[0] == '/') {
- url = this.baseurl.replace(/^(https?:\/\/[^\/]+\/).*$/, '$1') + url;
+ url = this.baseurl.replace(/^(https?:\/\/[^\/]+)\/.*$/, '$1') + url;
} else if (!url.match(/https?:\/\//i)) {
url = this.baseurl + url;
}
-----END OF PAGE-----