Skip to content

[SemVerRange] 複数条件Rangeの場合にプロパティが正しく設定されない #38

@mkht

Description

@mkht
PS> [SemVer]::new('>1.2.0 || 1.0.0')
MinimumVersion : 1.2.0
MaximumVersion : 2147483647.2147483647.2147483647.2147483647
Expression     : >1.2.0 || 1.0.0
IncludeMaximum : True
IncludeMinimum : False

上記例だとExpressionは正しい表記だが、MinimumVersionMaximumVersionが正しくない。
ただしIsSatisfiedを始めとする各種比較系メソッドは正しく動作する

PS> $r = [SemVer]::new('>1.2.0 || 1.0.0')
PS> $r.IsSatisfied('1.0.0')
True

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions