Skip to content

isPassportNumber isnot exactlly #1686

@steavengong

Description

@steavengong

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions