Home Reference Source

lib/ecc/src/BrainKey.js

export default function normalize(brainKey) {
    if (typeof brainKey !== "string") {
        throw new Error("string required for brainKey");
    }
    brainKey = brainKey.trim();
    return brainKey.split(/[\t\n\v\f\r ]+/).join(" ");
}