Skip to content

Commit

Permalink
Merge pull request #52 from Luukkasz/master
Browse files Browse the repository at this point in the history
update allowed length of Canadian account number
  • Loading branch information
marer authored Aug 22, 2023
2 parents 515aa20 + 7eb6692 commit f3fb03d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main/general-validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export const isIbanLengthValidator = (value: string, countryCode: string): boole
export const isLanNumberValidator = (value: string, country?: string): boolean => {
const lanCountriesRules = {
AU: /^[A-Za-z0-9]{6,30}$/,
CA: /^[A-Za-z0-9]{7,15}$/,
CA: /^[A-Za-z0-9]{7,30}$/,
CN: /^(?:OSA|NRA|FTN)?[A-Z0-9]{1,22}$/i,
JP: /^[A-Za-z0-9]{7,14}$/,
KR: /^[A-Za-z0-9]{11,16}$/,
Expand Down
2 changes: 1 addition & 1 deletion test/general-validators.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ describe('Validators', () => {
;
[
{ country: 'AU', min: 6, max: 30 },
{ country: 'CA', min: 7, max: 15 },
{ country: 'CA', min: 7, max: 30 },
{ country: 'CN', min: 1, max: 22 },
{ country: 'JP', min: 7, max: 14 },
{ country: 'KR', min: 11, max: 16 },
Expand Down

0 comments on commit f3fb03d

Please sign in to comment.