diff options
author | Florrie <towerofnix@gmail.com> | 2020-06-12 16:33:31 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2020-06-12 16:33:31 -0300 |
commit | 4afad0df6aa435a50b4323604b16603ec43c7c50 (patch) | |
tree | b379f38839a3065ca79fc7a4e7e107e58d9c42b7 | |
parent | 5d8dd6c618bef3b1a33a2eda130e155ba50ca952 (diff) |
complete the changelog
-rw-r--r-- | upd8.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/upd8.js b/upd8.js index 99626a47..938e20af 100644 --- a/upd8.js +++ b/upd8.js @@ -125,8 +125,7 @@ const SITE_ABOUT = fixWS` </ul> `; -const SITE_CHANGELOG = fixWS` -`; +const SITE_CHANGELOG = fs.readFileSync('changelog.html').toString().trim(); // fight me bro const SITE_FEEDBACK = fixWS` <p><strong>Feature requests? Noticed any errors?</strong> Please let me know! I appreciate feedback a lot, and always want to make this site better.</p> @@ -1884,6 +1883,10 @@ function rebaseURLs(directory, html) { return html; } return html.replace(/(href|src)="(.*?)"/g, (match, attr, url) => { + if (url.startsWith('#')) { + return `${attr}="${url}"`; + } + try { new URL(url); // no error: it's a full url |