{"action":"opened","issue":{"url":"https://api.github.com/repos/andk/pause/issues/279","repository_url":"https://api.github.com/repos/andk/pause","labels_url":"https://api.github.com/repos/andk/pause/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/andk/pause/issues/279/comments","events_url":"https://api.github.com/repos/andk/pause/issues/279/events","html_url":"https://github.com/andk/pause/issues/279","id":320900206,"number":279,"title":"Inconsistent \"normalization\" of versions","user":{"login":"Grinnz","id":5769356,"avatar_url":"https://avatars3.githubusercontent.com/u/5769356?v=4","gravatar_id":"","url":"https://api.github.com/users/Grinnz","html_url":"https://github.com/Grinnz","followers_url":"https://api.github.com/users/Grinnz/followers","following_url":"https://api.github.com/users/Grinnz/following{/other_user}","gists_url":"https://api.github.com/users/Grinnz/gists{/gist_id}","starred_url":"https://api.github.com/users/Grinnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grinnz/subscriptions","organizations_url":"https://api.github.com/users/Grinnz/orgs","repos_url":"https://api.github.com/users/Grinnz/repos","events_url":"https://api.github.com/users/Grinnz/events{/privacy}","received_events_url":"https://api.github.com/users/Grinnz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-07T18:07:56Z","updated_at":"2018-05-07T18:07:56Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"It appears that versions like '0.001.0' are normalized to '0.001' by the following code: https://github.com/andk/pause/blob/bae8c4c38136078752c1284c087154bd377a575e/lib/PAUSE/pmfile.pm#L521-L580\r\n\r\nThe only indication for the purpose of this is the comment saying \"the trailing zeroes would cause unnecessary havoc\". However, a similar version '0.1.0' or '0.01.0' would be left intact, because they aren't numerically equivalent to the decimal versions they look like. All of these are completely valid version tuples including '0.001.0', so what is the purpose of this normalization?"}}
{"actor":{"display_login":"Grinnz"}}