Skip to content

Wrong regex #11

@HybridSolutions

Description

@HybridSolutions

You have some regex patterns wrong. PT and JP don't have optional dash "-".

in PT, the number 1233123 will validate and that is incorrect. Zip codes for Portugal must have the pattern NNNN-NNN. The correct pattern should be ^\d{4}-\d{3}$

For japan, the correct pattern should be ^\d{3}-\d{4}$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions