Skip to content

Commit

Permalink
fix: zipcode validator now accepts upper case letters
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilczaja committed Mar 11, 2024
1 parent 8cf6469 commit 6df613d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* Contributors:
* sovity GmbH - initial implementation
*/

import {Configuration, ConfigurationParameters, UiApi} from './generated';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* Contributors:
* sovity GmbH - initial implementation
*/

// noinspection JSUnusedGlobalSymbols
import {resolve} from 'path';
import {defineConfig} from 'vite';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import {ValidatorFn} from '@angular/forms';
import {namedRegexValidator} from './named-regex-validator';

export const validZipCodePattern = /^[a-z0-9][a-z0-9\- ]{3,10}[a-z0-9]$/;
export const validZipCodePattern = /^[a-zA-Z0-9][a-zA-Z0-9\- ]{3,10}[a-zA-Z0-9]$/;

export const zipCodeValidator: ValidatorFn = namedRegexValidator(
validZipCodePattern,
Expand Down

0 comments on commit 6df613d

Please sign in to comment.