Skip to content

[BUG] semver.satisfies("9007199254740991.9007199254740991.9007199254740991--", "~9007199254740991.9007199254740991.9007199254740991-1") returns false #393

@martijnhoekstra

Description

@martijnhoekstra

What / Why

semver.satisfies("9007199254740991.9007199254740991.9007199254740991--", "~9007199254740991.9007199254740991.9007199254740991-1")

returns false whereas I'd expect it to return true. Note that 9007199254740991 is max safe int, and replacing all those with 1 makes it return true.

When

  • every time I call the method with those parameters.

Where

  • npm/node-semver

How

Current Behavior

  • call semver.satisfies("9007199254740991.9007199254740991.9007199254740991--", "~9007199254740991.9007199254740991.9007199254740991-1")
  • false is returned

Steps to Reproduce

  • call semver.satisfies("9007199254740991.9007199254740991.9007199254740991--", "~9007199254740991.9007199254740991.9007199254740991-1")

Expected Behavior

  • true is returned

Who

  • I don't know

References

  • I don't know

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