Skip to content

Commit 3732b69

Browse files
authored
Merge pull request #276 from MultiDirectoryLab/feature/MD-1148
MD-1148
2 parents 1381415 + f81f471 commit 3732b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/multidirectory-app/src/app/core/validators/ip-universal.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { translate } from '@jsverse/transloco';
1616
export class UniversalIpValidatorDirective implements Validator {
1717
readonly errorLabel = input(translate('error-message.ip-valid'));
1818
ipPattern = new RegExp(
19-
'^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:-(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?(?:\\/(?:[1-9]|[1-2][0-9]|3[0-1]))?$',
19+
'^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:-(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?(?:\\/(?:[0-9]|[1-2][0-9]|3[0-2]))?$',
2020
);
2121

2222
validate(control: AbstractControl): ValidationErrors | null {

0 commit comments

Comments
 (0)