Fix postcode validation regex
This commit is contained in:
parent
be1df5ce1a
commit
d09b6cce04
|
|
@ -2,6 +2,6 @@ export function validatePostalCode(input: string) {
|
|||
if (input.length < 4) {
|
||||
return false;
|
||||
}
|
||||
const regex = /^[0-9]/;
|
||||
const regex = /^\d+$/;
|
||||
return regex.test(input);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue