url validator fix
This commit is contained in:
parent
a42ad70a47
commit
3fdb7682ea
|
@ -43,7 +43,7 @@ export function RequiredWithVisibilityRulesValidator(visibilityRulesService: Vis
|
|||
}
|
||||
|
||||
export function UrlValidator(): ValidatorFn{
|
||||
const urlRegex = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/;
|
||||
const urlRegex = /^(?:http(s)?:\/\/)[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:\/?#[\]@!\$&'\(\)\*\+,;=.]+$/;
|
||||
return Validators.pattern(urlRegex);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue