Skip to content

Commit

Permalink
Fix unescaped key when generating parameterised strings with quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoelayda committed Sep 23, 2020
1 parent 269888b commit 3e45c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/RswiftCore/Generators/StringsStructGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ struct StringsStructGenerator: ExternalOnlyStructGenerator {
}
guard let (locale, bundle) = localeBundle(tableName: "\(values.tableName)", preferredLanguages: preferredLanguages) else {
return "\(values.key)"
return "\(values.key.escapedStringLiteral)"
}
let format = \(values.swiftCode(bundle: "bundle"))
Expand Down

0 comments on commit 3e45c9f

Please sign in to comment.