Skip to content

Coerce from right-to-left #248

@marceloavf

Description

@marceloavf

By default, coerce runs from left-to-right returning the version, I would discuss if it should be possible to have an option to check from right-to-left.

Actual example:

semver.coerce('test/v1.0.0/app-v1.2.3-install.exe')
//=> version: "1.0.0"

Possibility

semver.coerce('test/v1.0.0/app-v1.2.3-install.exe', 'right-to-left')
//=> version: "1.2.3"

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