Fix RC capitalization

This commit is contained in:
Brandon Evans 2021-02-04 18:34:13 -07:00
parent c082fa279b
commit 57767f6920
No known key found for this signature in database
GPG key ID: D58A4B8DB64F8E93

View file

@ -50,7 +50,13 @@ public extension Version {
} }
if !prereleaseIdentifiers.isEmpty { if !prereleaseIdentifiers.isEmpty {
base += " " + prereleaseIdentifiers base += " " + prereleaseIdentifiers
.map { $0.replacingOccurrences(of: "-", with: " ").capitalized.replacingOccurrences(of: "Gm", with: "GM") } .map { identifiers in
identifiers
.replacingOccurrences(of: "-", with: " ")
.capitalized
.replacingOccurrences(of: "Gm", with: "GM")
.replacingOccurrences(of: "Rc", with: "RC")
}
.joined(separator: " ") .joined(separator: " ")
} }
return base return base