1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.assertValidPattern = void 0;
4const MAX_PATTERN_LENGTH = 1024 * 64;
5const assertValidPattern = (pattern) => {
6    if (typeof pattern !== 'string') {
7        throw new TypeError('invalid pattern');
8    }
9    if (pattern.length > MAX_PATTERN_LENGTH) {
10        throw new TypeError('pattern is too long');
11    }
12};
13exports.assertValidPattern = assertValidPattern;
14//# sourceMappingURL=assert-valid-pattern.js.map