hive-js-dev
Version:
Steem.js the JavaScript API for Steem blockchain
13 lines (12 loc) • 341 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.normalize = normalize;
function normalize(brain_key) {
if (typeof brain_key !== 'string') {
throw new Error("string required for brain_key");
}
brain_key = brain_key.trim();
return brain_key.split(/[\t\n\v\f\r ]+/).join(' ');
}