mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
3.3 KiB
Plaintext
1 line
3.3 KiB
Plaintext
{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.REGEX_HEX_NOPREFIX = exports.REGEX_HEX_PREFIXED = void 0;\n exports.isHex = isHex;\n exports.REGEX_HEX_PREFIXED = /^0x[\\da-fA-F]+$/;\n exports.REGEX_HEX_NOPREFIX = /^[\\da-fA-F]+$/;\n /**\n * @name isHex\n * @summary Tests for a hex string.\n * @description\n * Checks to see if the input value is a `0x` prefixed hex string. Optionally (`bitLength` !== -1) checks to see if the bitLength is correct.\n * @example\n * <BR>\n *\n * ```javascript\n * import { isHex } from '@polkadot/util';\n *\n * isHex('0x1234'); // => true\n * isHex('0x1234', 8); // => false\n * ```\n */\n function isHex(value, bitLength = -1, ignoreLength) {\n return typeof value === 'string' && (value === '0x' || exports.REGEX_HEX_PREFIXED.test(value)) && (bitLength === -1 ? ignoreLength || value.length % 2 === 0 : value.length === 2 + Math.ceil(bitLength / 4));\n }\n});","lineCount":29,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"REGEX_HEX_NOPREFIX"],[7,28,3,26],[7,31,3,29,"exports"],[7,38,3,36],[7,39,3,37,"REGEX_HEX_PREFIXED"],[7,57,3,55],[7,60,3,58],[7,65,3,63],[7,66,3,64],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"isHex"],[8,15,4,13],[8,18,4,16,"isHex"],[8,23,4,21],[9,2,5,0,"exports"],[9,9,5,7],[9,10,5,8,"REGEX_HEX_PREFIXED"],[9,28,5,26],[9,31,5,29],[9,48,5,46],[10,2,6,0,"exports"],[10,9,6,7],[10,10,6,8,"REGEX_HEX_NOPREFIX"],[10,28,6,26],[10,31,6,29],[10,46,6,44],[11,2,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,0,20,0],[25,0,21,0],[26,2,22,0],[26,11,22,9,"isHex"],[26,16,22,14,"isHex"],[26,17,22,15,"value"],[26,22,22,20],[26,24,22,22,"bitLength"],[26,33,22,31],[26,36,22,34],[26,37,22,35],[26,38,22,36],[26,40,22,38,"ignoreLength"],[26,52,22,50],[26,54,22,52],[27,4,23,4],[27,11,23,12],[27,18,23,19,"value"],[27,23,23,24],[27,28,23,29],[27,36,23,37],[27,41,23,42,"value"],[27,46,23,47],[27,51,23,52],[27,55,23,56],[27,59,24,8,"exports"],[27,66,24,15],[27,67,24,16,"REGEX_HEX_PREFIXED"],[27,85,24,34],[27,86,24,35,"test"],[27,90,24,39],[27,91,24,40,"value"],[27,96,24,45],[27,97,24,46],[27,98,24,47],[27,103,24,53,"bitLength"],[27,112,24,62],[27,117,24,67],[27,118,24,68],[27,119,24,69],[27,122,25,11,"ignoreLength"],[27,134,25,23],[27,138,25,28,"value"],[27,143,25,33],[27,144,25,34,"length"],[27,150,25,40],[27,153,25,43],[27,154,25,44],[27,159,25,49],[27,160,25,51],[27,163,26,11,"value"],[27,168,26,16],[27,169,26,17,"length"],[27,175,26,23],[27,180,26,29],[27,181,26,30],[27,184,26,33,"Math"],[27,188,26,37],[27,189,26,38,"ceil"],[27,193,26,42],[27,194,26,43,"bitLength"],[27,203,26,52],[27,206,26,55],[27,207,26,56],[27,208,26,59],[27,209,26,60],[28,2,27,0],[29,0,27,1],[29,3]],"functionMap":{"names":["<global>","isHex"],"mappings":"AAA;ACqB;CDK"},"hasCjsExports":true},"type":"js/module"}]} |