Skip to content

Commit 3623b29

Browse files
committed
Fix version specifier to have patch version 0 implicitly
1 parent c7dc159 commit 3623b29

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/XcCommand/Specifier.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ enum Specifier {
2929
self = .build(build)
3030
}
3131
}
32-
else if let version = Xcode.Version(string: string) {
32+
else if var version = Xcode.Version(string: string) {
3333
if let `operator` = `operator` {
3434
self = .operatorAndVersion(`operator`, version)
3535
}
3636
else {
37+
if version.patch == nil {
38+
version.patch = 0
39+
}
3740
self = .version(version)
3841
}
3942
}

0 commit comments

Comments
 (0)