Skip to content

There is a flaw in the VERSION-RANGE-SPEC #20

@pstray

Description

@pstray

There is a logical flaw in VERSION-RANGE-SPEC, as there is only an OR-operator for ranges. At least for npms semvers there should be an AND operator.

One of the examples:
vers:npm/1.2.3|>=2.0.0|<5.0.0

This would essentially parse to every version, as everything mathes less than 5.0.0 or greater or equal to 2.0.0

Following the npm semver spec (https://github.com/npm/node-semver#ranges) this would have been written as:

1.2.3 || >=2.0.0 <5.0.0

Parsing to either 1.2.3 or (greater or equal to 2.0.0 AND less than 5.0.0)

That AND operator seem to have gotten lost on the way...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions