Bugfix: Fix replaceAll not present in older versions of node

pull/1/head
Starbeamrainbowlabs 2021-08-09 21:44:16 +01:00
parent 6abfb5611d
commit c35d7cbe76
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ function hash(str) {
const hash = new SHAKE(128); const hash = new SHAKE(128);
hash.update(str); hash.update(str);
return hash.digest("base64") return hash.digest("base64")
.replaceAll("/", "-") .replace(/\//g, "-")
.replaceAll("+", "_"); .replace(/\+/g, "_");
} }
async function filter_asset(src) { async function filter_asset(src) {