You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
336 B
10 lines
336 B
1 month ago
|
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
|