Skip to content

parse error for prerelease/build #19

@bzimage-it

Description

@bzimage-it

Some string are not parsed correctly.

Adding following code to semverTest() function:

local V=
V=1.0.0-beta.1
semverParseInto $V MAJOR MINOR PATCH SPECIAL
echo "$V -> $MAJOR $MINOR $PATCH $SPECIAL"

V=1.0.0+build.1
semverParseInto $V MAJOR MINOR PATCH SPECIAL
echo "$V -> $MAJOR $MINOR $PATCH $SPECIAL"

the result is wrong, showing 1.1 instead of 1:

1.0.0-beta.1 -> 1.1 0.1 0.1 -beta.1
1.0.0+build.1 -> 1+build.1 0+build.1 0+build.1 +build.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions