Skip to content

Commit

Permalink
fix(tools): escape double quotes in extract-i18n-messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Werner committed Feb 25, 2018
1 parent 2ce77fa commit d6c2c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/scripts/extract-i18n-messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const sanitizeMessage = (message: string): string => {
{ from: /\n/g, to: '\\n' },
{ from: /\[/g, to: '<' },
{ from: /\]/g, to: '>' },
{ from: /"/g, to: '\'' },
{ from: /\"/g, to: '\\"' },
];

replacements.forEach((replacement: { from: string | RegExp, to: string }) => {
Expand Down

0 comments on commit d6c2c7c

Please sign in to comment.