Skip to content

Prerelease String shouldn't always be treated as lower versionΒ #102

@Maimonator

Description

@Maimonator

Hey,
I've found some irregularity where I have the following two versions for tcpdump
4.9.3-4ubuntu0.1
4.9.3

Using the example code from the readme we get that 4.9.3 is greater than 4.9.3-4ubuntu0.1 even though that's not the case
Link to playground to see my tests.

I'm pretty sure that 4ubuntu0.1 doesn't mean it's a prerelease version and it's a widely used suffix.
In other compiled binaries for ubuntu.

I'm not sure what's the correct approach to solve this, but I was wondering whether we should narrow down the behavior when evaluating the prerelease string.
WDYT?

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