Sha256: 90e8d3327d573b9d2391edf03dc7d50c1c0b468d720a4c0fb4a08a36ee5c50dc

Contents?: true

Size: 336 Bytes

Versions: 89

Compression:

Stored size: 336 Bytes

Contents

const MAX_PATTERN_LENGTH = 1024 * 64;
export const assertValidPattern = (pattern) => {
    if (typeof pattern !== 'string') {
        throw new TypeError('invalid pattern');
    }
    if (pattern.length > MAX_PATTERN_LENGTH) {
        throw new TypeError('pattern is too long');
    }
};
//# sourceMappingURL=assert-valid-pattern.js.map

Version data entries

89 entries across 30 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/eslint-plugin-sonarjs/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.51 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.51 node_modules/ignore-walk/node_modules/minimatch/dist/mjs/assert-valid-pattern.js
immosquare-cleaner-0.1.51 node_modules/@tufjs/models/node_modules/minimatch/dist/mjs/assert-valid-pattern.js
immosquare-cleaner-0.1.51 node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.51 node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.51 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.50 node_modules/eslint-plugin-sonarjs/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.50 node_modules/@tufjs/models/node_modules/minimatch/dist/mjs/assert-valid-pattern.js
immosquare-cleaner-0.1.50 node_modules/ignore-walk/node_modules/minimatch/dist/mjs/assert-valid-pattern.js
immosquare-cleaner-0.1.50 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.50 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.50 node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.50 node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.49 node_modules/ignore-walk/node_modules/minimatch/dist/mjs/assert-valid-pattern.js
immosquare-cleaner-0.1.49 node_modules/@tufjs/models/node_modules/minimatch/dist/mjs/assert-valid-pattern.js
immosquare-cleaner-0.1.49 node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.49 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.49 node_modules/eslint-plugin-sonarjs/node_modules/minimatch/dist/esm/assert-valid-pattern.js
immosquare-cleaner-0.1.49 node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js