Skip to content

Postalcode validation accepts values that are longer than specified #87

Open

Description

@sldhana-zz

I am using FormEncode postalcode validation to validate postalcodes for certain countries. For example, if I enter a postalcode of 111-111 or 111111 for Japan, it returns an error as expected. But, if I enter 111-11111 or 1111111 (any digit more than the postalcode requirements), it accepts the value. Shouldn't the length requirements of the postalcode be honored?

Activity

  1. lambacck commented on Aug 10, 2015

    @lambacck
    Contributor

    A PR was recently merged for this: #85 but no release has been made since.

  2. sldhana-zz commented on Aug 10, 2015

    @sldhana-zz
    Author

    @lambacck, any idea on the timeline? This fix is perfect for what I need to do and I am hoping to use this fix as a jumping board to add additional countries for postalcode validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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