Bounded regular-expression filter
An optional 'matchesRegex' operator lets power users filter with regular expressions. It enforces a pattern length limit, a per-evaluation time budget, and rejection of known catastrophic constructs. The bounds protect the page from ReDoS freezes.
Planned. This page shows the specification from issue #187. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A hosts grid with 20,000 rows. The regex operator is enabled with maxLength 200 and timeout 50 ms.
Expected behavior
Valid patterns filter rows. Invalid syntax shows an inline error and the previous filter stays applied. The catastrophic sample is either rejected up front or aborted at the timeout with a message; the page stays responsive.
Planned API surface
operator='matchesRegex'filterParams.enableRegexfilterParams.regexMaxLengthfilterParams.regexTimeoutMsfilterParams.regexFlagsonFilterErrorAcceptance criteria
- The regex operator is disabled by default and only appears when enableRegex=true. (pending)
- Patterns longer than regexMaxLength are rejected with an error and are not compiled. (pending)
- Pattern syntax errors show an inline message and leave the current row set unchanged. (pending)
- If the total evaluation exceeds regexTimeoutMs, the filter is aborted, onFilterError fires with reason 'timeout', and the prior row set is kept. (pending)
- The main thread is never blocked for longer than the timeout plus a documented margin during a demo run. (pending)
- The 'g' and 'y' flags are not allowed. (pending)