diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-05 17:12:21 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-05 17:16:55 +1100 |
commit | a3f2f997a3ddfafdff19bd8911f7b610326c02d8 (patch) | |
tree | 7086d2a6971ed06c6d09cda6c277fb544c3c608d /scripts/changelog.js | |
parent | channel flags whoops (diff) | |
download | server-a3f2f997a3ddfafdff19bd8911f7b610326c02d8.tar.xz |
Prettier
Diffstat (limited to 'scripts/changelog.js')
-rw-r--r-- | scripts/changelog.js | 8 |
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 +})(); |