Bugfix: Fix replaceAll not present in older versions of node
parent
6abfb5611d
commit
c35d7cbe76
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue