From df449169bde6c0576757700f68f2d406139cc846 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Thu, 5 Jan 2023 17:12:21 +1100 Subject: Prettier --- scripts/changelog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/changelog.js') diff --git a/scripts/changelog.js b/scripts/changelog.js index e3468b29..bb1799c6 100644 --- a/scripts/changelog.js +++ b/scripts/changelog.js @@ -26,13 +26,13 @@ const CHANGELOG_SCRIPT = "4ec0b5948572d31df88b.js"; .toString() .replaceAll("\r", "") .replaceAll("\n", "\\n") - .replaceAll("\'", "\\'"); + .replaceAll("'", "\\'"); const index = text.indexOf("t.exports='---changelog---") + 11; - const endIndex = text.indexOf("'\n", index); // hmm + const endIndex = text.indexOf("'\n", index); // hmm await fs.writeFile( path.join(CACHE_PATH, CHANGELOG_SCRIPT), - text.substring(0, index) + newChangelogText + text.substring(endIndex) + text.substring(0, index) + newChangelogText + text.substring(endIndex), ); -})(); \ No newline at end of file +})(); -- cgit 1.5.1