mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-23 04:58:02 +00:00
14 lines
320 B
JavaScript
14 lines
320 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.base64Trim = base64Trim;
|
|
/**
|
|
* @name base64Trim
|
|
* @description Trims padding characters
|
|
*/
|
|
function base64Trim(value) {
|
|
while (value.length && value.endsWith('=')) {
|
|
value = value.slice(0, -1);
|
|
}
|
|
return value;
|
|
}
|