Skip to content

Commit 7f4708d

Browse files
fix: fix regex character duplication
1 parent 2fd8524 commit 7f4708d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/account-v2/src/modules/AddressFields/validations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const regexChecks = {
77
address_line_2: /^[\p{L}\p{Nd}\s'.,:;()\u00b0@#/-]{0,70}$/u,
88
address_postcode: /^[a-zA-Z0-9\s-]{0,20}$/,
99
address_state: /^[\w\s'.;,-]{0,99}$/,
10-
non_jersey_postcode: /^(?!\s*je.*)[a-zA-Z0-9\s-]*/i,
10+
non_jersey_postcode: /^(?!\s*je.*)[a-z0-9\s-]*/,
1111
},
1212
};
1313

0 commit comments

Comments
 (0)