Skip to content

SemanticVersion missing equals/not equals operator, prerelease sorted wrong #3711

@devlead

Description

@devlead

Current behaviour

new SemanticVersion(1,0,0) == new SemanticVersion(1,0,0) == false
new SemanticVersion(1,0,0) > new SemanticVersion(1,0,0, "rc0001") == false

Expected behaviour

new SemanticVersion(1,0,0) == new SemanticVersion(1,0,0) == true
new SemanticVersion(1,0,0) > new SemanticVersion(1,0,0, "rc0001") == true

I'll send a pr shortly to address this.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions