UNPKG

@j0nnyboi/amman

Version:

A modern mandatory toolbelt to help test solana SDK libraries and apps on a locally running validator.

10 lines 485 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assertValidPathSegmentWithoutSpaces = void 0; const assert_1 = require("assert"); /** @private */ function assertValidPathSegmentWithoutSpaces(p, msg) { (0, assert_1.strict)(/^[a-zA-Z0-9_-]+$/.test(p), `Invalid path segment: ${p}. ${msg !== null && msg !== void 0 ? msg : ''}`); } exports.assertValidPathSegmentWithoutSpaces = assertValidPathSegmentWithoutSpaces; //# sourceMappingURL=path.js.map