Title: leading zeroes can fail to be coerced · Issue #153 · rbarrois/python-semanticversion · GitHub
Open Graph Title: leading zeroes can fail to be coerced · Issue #153 · rbarrois/python-semanticversion
X Title: leading zeroes can fail to be coerced · Issue #153 · rbarrois/python-semanticversion
Description: There was an issue a long time ago with a feature merged for leading-zeroes support, even though it's not technically semver to do so (Though I think it's good to support): #89 However, it does not work in all situations. Version.coerce(...
Open Graph Description: There was an issue a long time ago with a feature merged for leading-zeroes support, even though it's not technically semver to do so (Though I think it's good to support): #89 However, it does not...
X Description: There was an issue a long time ago with a feature merged for leading-zeroes support, even though it's not technically semver to do so (Though I think it's good to support): #89 However, it ...
Opengraph URL: https://github.com/rbarrois/python-semanticversion/issues/153
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"leading zeroes can fail to be coerced","articleBody":"There was an issue a long time ago with a feature merged for leading-zeroes support, even though it's not technically semver to do so (Though I think it's good to support): https://github.com/rbarrois/python-semanticversion/issues/89\r\n\r\nHowever, it does not work in all situations.\r\n\r\nVersion.coerce(\"1.2.3\") -\u003e works fine\r\nVersion.coerce(\"1.2.000\") -\u003e works fine, gets interpreted as 1.2.0\r\nVersion.coerce(\"1.2.3.000\") -\u003e works fine, gets interpreted as 1.2.3+000\r\nVersion.coerce(\"1.2.3-000\") -\u003e breaks\r\n\r\nIt's difficult to know if this could called a bug or a feature-request, as leading-zeros aren't semver compliant, but since the original request was a feature, and ostensibly extends support for leading-zeroes, I would probably call this a bug with that feature. I could be misinterpreting something, though. In any case, it would be appreciated if this could be further supported.","author":{"url":"https://github.com/maxnbk","@type":"Person","name":"maxnbk"},"datePublished":"2024-03-11T23:09:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/153/python-semanticversion/issues/153"}
| 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:53bf9b9a-173f-a8dd-c974-b8b189c38a0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4E4:6C0D0:D7822C:111F5F2:69915FFD |
| html-safe-nonce | 48e9008573d6bad837b1d70e66c3415230e439ca70fd5087f205795f2ca2be63 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEU0OjZDMEQwOkQ3ODIyQzoxMTFGNUYyOjY5OTE1RkZEIiwidmlzaXRvcl9pZCI6IjM0ODIxNDAzNzc2MTEzMjk1MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1179a041fcda43879515028ce5a1b2b066776ef88985ffecfb12f49ce22baf97 |
| hovercard-subject-tag | issue:2180416637 |
| 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/rbarrois/python-semanticversion/153/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a694b44d1189233995a645d1789fb9eae783ed6a6f2f6c6f659cd29680f3b22/rbarrois/python-semanticversion/issues/153 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a694b44d1189233995a645d1789fb9eae783ed6a6f2f6c6f659cd29680f3b22/rbarrois/python-semanticversion/issues/153 |
| og:image:alt | There was an issue a long time ago with a feature merged for leading-zeroes support, even though it's not technically semver to do so (Though I think it's good to support): #89 However, it does not... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxnbk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/rbarrois/python-semanticversion git https://github.com/rbarrois/python-semanticversion.git |
| octolytics-dimension-user_id | 694541 |
| octolytics-dimension-user_login | rbarrois |
| octolytics-dimension-repository_id | 4326308 |
| octolytics-dimension-repository_nwo | rbarrois/python-semanticversion |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4326308 |
| octolytics-dimension-repository_network_root_nwo | rbarrois/python-semanticversion |
| 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