Skip to content

VersionParser->normalize() returns invalid versions #135

@grasmash

Description

@grasmash

I find that running $version_parser->normalize('1.30.1'); will return 1.30.1.0. That's not valid SemVer. It stems from this:

$version = $matches[1]

I suspect that I'm missing something, because this seems like too much of a bug for me to have been the first one to have noticed it. Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions