-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: janusweb action: commit revision: path_from: revision_from: e950d7c92c89c50175d2b4051e6dd4c6bbaf0b1f: path_to: revision_to:
commit e950d7c92c89c50175d2b4051e6dd4c6bbaf0b1f Author: James Baicoianu <james_github@baicoianu.com> Date: 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-----
-- Response ended
-- Page fetched on Sun Jun 2 16:56:55 2024