summary refs log tree commit diff
path: root/scripts/changelog.js
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-05 17:12:21 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-05 17:16:55 +1100
commitdf449169bde6c0576757700f68f2d406139cc846 (patch)
treef8bcbaf30ed3ed007d392a51614a134e543e3c17 /scripts/changelog.js
parentchannel flags whoops (diff)
downloadserver-df449169bde6c0576757700f68f2d406139cc846.tar.xz
Prettier
Diffstat (limited to 'scripts/changelog.js')
-rw-r--r--scripts/changelog.js8
1 files changed, 4 insertions, 4 deletions
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 +})();