Skip to content

Location code regex are not correct #27

@marmg

Description

@marmg

Hello, I see in validation.py that the code for checking if it's a subnational code is:

def is_subnational2(value):
    return re.match(r"^[A-Z]{2}-[A-Z0-9]{2,3}-[A-Z0-9]{2,3}$", value)

However, some location codes (like in Ireland) contain only 1 letter: IE-L-DN

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