We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd14b60 commit 0fedf01Copy full SHA for 0fedf01
src/synapse/matrix.ts
@@ -8,7 +8,7 @@ export const splitMxid = mxid => {
8
return re.exec(mxid)?.groups;
9
};
10
11
-export const isValidBaseUrl = baseUrl => /^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(baseUrl);
+export const isValidBaseUrl = baseUrl => /^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?\/?$/.test(baseUrl);
12
13
/**
14
* Resolve the homeserver URL using the well-known lookup
0 commit comments