UNPKG

alks

Version:
16 lines 551 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tryToExtractRole = void 0; const getAccountRegex_1 = require("./getAccountRegex"); function tryToExtractRole(account) { let match; while ((match = (0, getAccountRegex_1.getAccountRegex)().exec(account))) { if (match && account.indexOf('ALKS_') === -1) { // ignore legacy accounts return match[4]; } } return undefined; } exports.tryToExtractRole = tryToExtractRole; //# sourceMappingURL=tryToExtractRole.js.map