Files
fedilearns/node_modules/@11ty/eleventy-utils/src/Url.js

13 lines
237 B
JavaScript
Raw Normal View History

2026-04-29 08:30:52 -07:00
function base64UrlSafe(hashString = "") {
return hashString.replace(/[=\+\/]/g, function(match) {
if(match === "=") {
return "";
}
if(match === "+") {
return "-";
}
return "_";
});
}
module.exports = { base64UrlSafe };