You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
isPassportNumber isnot exactlly for countryCode with CN
Examples
1.My passport no is start with ED followed by 7-digits it's error
you can change
(^[EeKkGgDdSsPpHh]\d{8}$)|(^(([Ee][a-fA-F])|([DdSsPp][Ee])|([Kk][Jj])|([Mm][Aa])|(1[45]))\d{7}$)
Describe the bug
isPassportNumber isnot exactlly for countryCode with CN
Examples
1.My passport no is start with ED followed by 7-digits it's error
you can change
(^[EeKkGgDdSsPpHh]\d{8}$)|(^(([Ee][a-fA-F])|([DdSsPp][Ee])|([Kk][Jj])|([Mm][Aa])|(1[45]))\d{7}$)
2.Is any code can be HK、TW passport validator??
Additional context
Validator.js version: 13.6.0
Node.js version: v14.16.0
OS platform: macOS
The text was updated successfully, but these errors were encountered: