Consistently handle “A11y” key

This commit is contained in:
Jed Fox 2022-11-08 10:28:49 -05:00
parent 99b59dde70
commit d96f189980
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,12 @@ extension Parser {
.map { .map {
switch keyStyle { switch keyStyle {
case .infoPlist: return $0 case .infoPlist: return $0
case .swiftgen: return $0.capitalized case .swiftgen:
if $0 == "a11y" {
return "A11y"
} else {
return $0.capitalized
}
} }
} }
.joined() .joined()