Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
fix(ccl): unescape double-quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlenkeit committed Oct 24, 2022
1 parent 085556d commit 909a5f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ccl/ccl-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const mapEntryToTextDescriptor = languageCode => (it, idx, arr) => {
descriptor.localizedText = {
[languageCode]: it.value
.replace(/(^"|"$)/g, '')
.replace(/\\"/g, '"')
.replace(/\\n/g, '\n')
}
} if (it.tag === 'plurals') {
Expand All @@ -61,6 +62,7 @@ const mapEntryToTextDescriptor = languageCode => (it, idx, arr) => {
[languageCode]: it.value.reduce((map, it) => {
map[it.attributes.quantity] = it.value
.replace(/(^"|"$)/g, '')
.replace(/\\"/g, '"')
.replace(/\\n/g, '\n')
return map
}, {})
Expand Down

0 comments on commit 909a5f5

Please sign in to comment.