Title: Url validator mishandles upper case and repeated hyphens. · Issue #27 · python-validators/validators · GitHub
Open Graph Title: Url validator mishandles upper case and repeated hyphens. · Issue #27 · python-validators/validators
X Title: Url validator mishandles upper case and repeated hyphens. · Issue #27 · python-validators/validators
Description: I claim both of these should work: Case-insensitivity in hostnames: >>> validators.url('http://www.GOOGLE.com/') ValidationFailure(func=url, args={'public': False, 'value': 'http://www.GOOGLE.com/'}) Ref: https://en.wikipedia.org/wiki/Ho...
Open Graph Description: I claim both of these should work: Case-insensitivity in hostnames: >>> validators.url('http://www.GOOGLE.com/') ValidationFailure(func=url, args={'public': False, 'value': 'http://www.GOOGLE.com/'...
X Description: I claim both of these should work: Case-insensitivity in hostnames: >>> validators.url('http://www.GOOGLE.com/') ValidationFailure(func=url, args={'public': False, 'val...
Opengraph URL: https://github.com/python-validators/validators/issues/27
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Url validator mishandles upper case and repeated hyphens.","articleBody":"I claim both of these should work:\n\nCase-insensitivity in hostnames:\n\n```\n\u003e\u003e\u003e validators.url('http://www.GOOGLE.com/')\nValidationFailure(func=url, args={'public': False, 'value': 'http://www.GOOGLE.com/'})\n```\n\nRef: https://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names\n\nMultiple sequential hyphens:\n\n```\n\u003e\u003e\u003e validators.url('http://xn--bcher-kva.ch/')\nValidationFailure(func=url, args={'public': False, 'value': 'http://xn--bcher-kva.ch/'})\n```\n\nRef: https://en.wikipedia.org/wiki/Internationalized_domain_name#Example_of_IDNA_encoding\n","author":{"url":"https://github.com/scole-scea","@type":"Person","name":"scole-scea"},"datePublished":"2016-07-05T17:34:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/27/validators/issues/27"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7132fbb9-523c-d2e5-7e1d-0b5fa129c4e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0A6:25317C:7F8118:8AC6BD:698FA4DC |
| html-safe-nonce | 67ca48dd0a20cf8371c1352de6a4eabd5fb3c04bb67101f204f9851a15a3c766 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEE2OjI1MzE3Qzo3RjgxMTg6OEFDNkJEOjY5OEZBNERDIiwidmlzaXRvcl9pZCI6IjU5MzA0NzA5Nzk4NjQwNzc1MzIiLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ== |
| visitor-hmac | 1481a64817a60b0a74e38155a8f96c209ca825e58f85f705e0c2b9c7cbcbdedf |
| hovercard-subject-tag | issue:163904816 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-validators/validators/27/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d76cc17d7c670ad00337e178dae8dc20c1c3995620656478d3180884003e700b/python-validators/validators/issues/27 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d76cc17d7c670ad00337e178dae8dc20c1c3995620656478d3180884003e700b/python-validators/validators/issues/27 |
| og:image:alt | I claim both of these should work: Case-insensitivity in hostnames: >>> validators.url('http://www.GOOGLE.com/') ValidationFailure(func=url, args={'public': False, 'value': 'http://www.GOOGLE.com/'... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | scole-scea |
| hostname | github.com |
| expected-hostname | github.com |
| None | ff0b5286b4f7cd2eb22d357a0ae8fb9a0ae1eaf6abfbae7410c3b315d16414e1 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-validators/validators git https://github.com/python-validators/validators.git |
| octolytics-dimension-user_id | 113113270 |
| octolytics-dimension-user_login | python-validators |
| octolytics-dimension-repository_id | 13642984 |
| octolytics-dimension-repository_nwo | python-validators/validators |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13642984 |
| octolytics-dimension-repository_network_root_nwo | python-validators/validators |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5268d66f533eb3b2e65a6a398a739f35827fd64a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width