Skip to content

Commit 75020ce

Browse files
crackfoooyershov
authored andcommitted
fix postcode regex
allow alphanumeric postal codes
1 parent 93025c6 commit 75020ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containers/Confirm/Identity/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ class IdentityComponent extends React.Component<Props, IdentityState> {
380380

381381
return value.match(cityRegex) ? true : false;
382382
case 'postcode':
383-
const postcodeRegex = new RegExp(`^[0-9]{1,12}$`);
383+
const postcodeRegex = new RegExp(`^[a-zA-Z0-9]{1,12}$`);
384384

385385
return value.match(postcodeRegex) ? true : false;
386386
case 'dateOfBirth':

0 commit comments

Comments
 (0)