in src/common/helper.js [97:105]
export function compressStr(str) {
if (!str || !(str = str.trim())) {
return;
}
return compressToBase64(str)
.replace(/\+/g, '-') // Convert '+' to '-'
.replace(/\//g, '_') // Convert '/' to '_'
.replace(/=+$/, ''); // Remove ending '='
}