Skip to content

APPROVAL_REGEXP_MAX_LENGTH

const APPROVAL_REGEXP_MAX_LENGTH: 200 = 200

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/schema.ts:158

EXT-71 ยง3.1 โ€” the length cap on a regexp pattern, enforced when the config LOADS.

200 characters. The longest pattern the spec itself writes is under 40, and every rule entry names one command or tool shape rather than a grammar, so 200 is an order of magnitude of headroom over real use while still bounding what the matcher can ever be handed. The cap is a cheap load-time bound, NOT a backtracking defence โ€” a short pattern can backtrack catastrophically too, and the run-time match budget is the separate backstop for that. What the cap buys is that a pattern nobody could have read and reviewed cannot be smuggled past load.