update isvalidurl

This commit is contained in:
Andrew Thauer
2021-01-28 12:21:54 -05:00
parent 059720015c
commit f11c906078
@@ -104,8 +104,9 @@ export class CommonValidatorFunctions {
}
try {
const url = new URL(value);
return !!url;
// eslint-disable-next-line no-new
new URL(value);
return true;
} catch {
return false;
}