Files
firefrost-website/node_modules/@11ty/eleventy-utils/src/Url.js
2026-04-02 18:39:00 -05:00

13 lines
237 B
JavaScript

function base64UrlSafe(hashString = "") {
return hashString.replace(/[=\+\/]/g, function(match) {
if(match === "=") {
return "";
}
if(match === "+") {
return "-";
}
return "_";
});
}
module.exports = { base64UrlSafe };