-- 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:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

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

index ac751050fd1999ff9a56b41496007e28e6d541d2..

index ..a7fe4ddcfd9ee2b13093f32b95e025ba16cbfd86 100644

--- 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