[MM-37743] Fix URL validation when editing/adding a server (#1688)

This commit is contained in:
Devin Binnie
2021-08-12 08:26:24 -04:00
committed by GitHub
parent 5964fc99ac
commit 60c73d6d58

View File

@@ -30,7 +30,7 @@ function getDomain(inputURL: URL | string) {
}
function isValidURL(testURL: string) {
return Boolean(isHttpUri(testURL) || isHttpsUri(testURL)) && parseURL(testURL) !== null;
return Boolean(isHttpUri(testURL) || isHttpsUri(testURL)) && Boolean(parseURL(testURL));
}
function isValidURI(testURL: string) {