[Building > Changelog] Escape backslashes

pull/43/head
Oj18 3 years ago
parent 6ed6bca27c
commit a324d87ffa

@ -10,7 +10,7 @@
- Fixed id cache not being invalidated every day
- Added localised path support for repo images, like using /images/file.png
- ### Settings
- ### Settings [progress]
- Use Discord's new green color in switches
- ### i18n [fixed]

@ -48,6 +48,6 @@ const json = {
body: body.join('\n')
};
console.log(JSON.stringify(json).replaceAll(`\\"`, `\\\\\\"`).replaceAll(`"`, `\\\\\\"`).replaceAll(`\\n`, `\\\\\\\\n`));
console.log(JSON.stringify(json).replaceAll(`\\"`, `\\\\\\"`).replaceAll(`"`, `\\\\\\"`).replaceAll(`\\n`, `\\\\\\\\n`).replaceAll('/', '\\/'));
// writeFileSync('../out/latestChangelogRelease.json', JSON.stringify(json));
Loading…
Cancel
Save