Skip to content

isPostalCode: Belarus (BY) RegExp is too permissive, matches invalid postal codes #2133

@pano9000

Description

@pano9000

The current regexp is too permissive, so it will match strings that should not be valid postal codes.
THis is caused by a missing "Start of String" anchor in the current Regexp:

/2[1-4]{1}\d{4}$/

PR with a fix is coming in a few moments

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions