Skip to content

Commit

Permalink
Merge pull request mac-cain13#668 from nicoelayda/fix/unescaped-string
Browse files Browse the repository at this point in the history
Escape parameterised strings with inner quotes.
  • Loading branch information
tomlokhorst authored Nov 8, 2020
2 parents 269888b + 3e45c9f commit bfb0122
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 bfb0122

Please sign in to comment.