Browse Source

Bugfix: Should allow port number for homeserver URL

develop
ar 2 years ago
parent
commit
4b4bbdeded
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      matrix-recorder.js

+ 2
- 2
matrix-recorder.js View File

@@ -21,7 +21,7 @@ var ask = function(question, format) {
resolve(data);
} else {
stdout.write("It should match: " + format + "\n");
return ask(question, format);
resolve(ask(question, format));
}
});
});
@@ -328,7 +328,7 @@ if(localStorage.getItem('baseUrl') && localStorage.getItem('accessToken')) {
// No, we need to populate this data from user input.
is_initial_run = true;
initPromise =
ask('Your homeserver (give full URL)', /^https?:\/\/[a-z0-9A-Z\.-]+\/.*$/).then(
ask('Your homeserver (give full URL)', /^https?:\/\/[a-z0-9A-Z\.-]+(:[0-9]+)?(\/.*)?$/).then(
function(homeserver) {
localStorage.setItem('baseUrl', homeserver.replace(/\/$/, ""));


Loading…
Cancel
Save