[MM-37743] Fix URL validation when editing/adding a server (#1688)
This commit is contained in:
@@ -30,7 +30,7 @@ function getDomain(inputURL: URL | string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isValidURL(testURL: 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) {
|
function isValidURI(testURL: string) {
|
||||||
|
Reference in New Issue
Block a user