Skip to content

Commit

Permalink
Fix RC capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
interstateone committed Feb 5, 2021
1 parent c082fa2 commit 57767f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Xcodes/Backend/Version+Xcode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ public extension Version {
}
if !prereleaseIdentifiers.isEmpty {
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: " ")
}
return base
Expand Down

0 comments on commit 57767f6

Please sign in to comment.