Title: domain validator fails for fully qualified ("absolute") domain names · Issue #124 · python-validators/validators · GitHub
Open Graph Title: domain validator fails for fully qualified ("absolute") domain names · Issue #124 · python-validators/validators
X Title: domain validator fails for fully qualified ("absolute") domain names · Issue #124 · python-validators/validators
Description: >>> import validators >>> validators.domain('foo.com') True >>> validators.domain('foo.com.') ValidationFailure(func=domain, args={'value': 'foo.com.'}) >>> Reference: https://tools.ietf.org/html/rfc1034 When a user needs to type a domai...
Open Graph Description: >>> import validators >>> validators.domain('foo.com') True >>> validators.domain('foo.com.') ValidationFailure(func=domain, args={'value': 'foo.com.'}) >>> Reference: https://tools.ietf.org/html/r...
X Description: >>> import validators >>> validators.domain('foo.com') True >>> validators.domain('foo.com.') ValidationFailure(func=domain, args={'value': 'f...
Opengraph URL: https://github.com/python-validators/validators/issues/124
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"domain validator fails for fully qualified (\"absolute\") domain names","articleBody":"```\r\n\u003e\u003e\u003e import validators\r\n\u003e\u003e\u003e validators.domain('foo.com')\r\nTrue\r\n\u003e\u003e\u003e validators.domain('foo.com.')\r\nValidationFailure(func=domain, args={'value': 'foo.com.'})\r\n\u003e\u003e\u003e\r\n```\r\n\r\nReference: https://tools.ietf.org/html/rfc1034\r\n\r\n\u003e When a user needs to type a domain name, the length of each label is\r\n\u003e omitted and the labels are separated by dots (\".\"). Since a complete\r\n\u003e domain name ends with the root label, this leads to a printed form which\r\n\u003e ends in a dot. We use this property to distinguish between:\r\n\u003e\r\n\u003e - a character string which represents a complete domain name\r\n\u003e (often called \"absolute\"). For example, \"poneria.ISI.EDU.\"\r\n\u003e\r\n\u003e - a character string that represents the starting labels of a\r\n\u003e domain name which is incomplete, and should be completed by\r\n\u003e local software using knowledge of the local domain (often\r\n\u003e called \"relative\"). For example, \"poneria\" used in the\r\n\u003e ISI.EDU domain.\r\n\r\nDiscussion: http://www.dns-sd.org/trailingdotsindomainnames.html","author":{"url":"https://github.com/mschiffm","@type":"Person","name":"mschiffm"},"datePublished":"2019-08-11T16:34:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/124/validators/issues/124"}
| 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:57c1e82e-7e1f-5a3d-bdba-c816c33d5491 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AF0:236EAA:14F32EF:1ACC58C:69925CEF |
| html-safe-nonce | 94290f29bcdea997c2fd47e008e073fccb9d187b9bcea6f3141bc6b0836e0c61 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUYwOjIzNkVBQToxNEYzMkVGOjFBQ0M1OEM6Njk5MjVDRUYiLCJ2aXNpdG9yX2lkIjoiMTQ5OTIzNTg4MjA3NDUyOTAwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 57394189a02f03397073948a774d9b4f85d6b2afb39dc4fe2ba49b81b3ffbd78 |
| hovercard-subject-tag | issue:479387265 |
| 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/124/issue_layout |
| twitter:image | https://opengraph.githubassets.com/de59d98e8789d9f6b31584f9b147c418a4700e1caddb025d411059445f8ebe58/python-validators/validators/issues/124 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/de59d98e8789d9f6b31584f9b147c418a4700e1caddb025d411059445f8ebe58/python-validators/validators/issues/124 |
| og:image:alt | >>> import validators >>> validators.domain('foo.com') True >>> validators.domain('foo.com.') ValidationFailure(func=domain, args={'value': 'foo.com.'}) >>> Reference: https://tools.ietf.org/html/r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mschiffm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width