From 57767f6920675e4efe785bd096e7092bc80eecdf Mon Sep 17 00:00:00 2001 From: Brandon Evans Date: Thu, 4 Feb 2021 18:34:13 -0700 Subject: [PATCH] Fix RC capitalization --- Xcodes/Backend/Version+Xcode.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Xcodes/Backend/Version+Xcode.swift b/Xcodes/Backend/Version+Xcode.swift index 77879a5..5166fba 100644 --- a/Xcodes/Backend/Version+Xcode.swift +++ b/Xcodes/Backend/Version+Xcode.swift @@ -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