Skip to content

Punycode URLs Fail Validation #178

Closed

Description

@baderj

Validation fails for URLs with Punycode, even though they are correct URLs:

import validators
validators.url("https://www.xn--bld-tna.com")
ValidationFailure(func=url, args={'value': 'https://www.xn--bld-tna.com', 'public': False})

Activity

  1. CuriouslyCory commented on Oct 20, 2022

    @CuriouslyCory

    Doing a little testing, for some reason the library does not like multiple dashes in a row.
    Another url example I found today. If I remove 2 of the 3 dashes after "live" it validates correctly.
    https://live---metadata-5covpqijaa-uc.a.run.app/images/3033

  2. added
    bug
    duplicate
    outdated
    on Mar 14, 2023
  3. added a commit that references this issue on Mar 17, 2023
    c43826c
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

    bugduplicateoutdated

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions