url validator fix

This commit is contained in:
Diamantis Tziotzios 2024-06-13 13:25:13 +03:00
parent a42ad70a47
commit 3fdb7682ea
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}