WarUI

Bounded regex and pattern filtering

GRID-A29-F12P1beyond-baselinePlanned

Regex filter input is length-limited, rejects constructs prone to catastrophic backtracking, and runs on a time-boxed path, with literal-text matching as the default. This prevents a single filter string from freezing the UI (ReDoS).

Planned. This page shows the specification from issue #209. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

100k generated rows with a filter row set to contains mode.

Expected behavior

Unsafe patterns are rejected with an inline message. Patterns exceeding the time budget abort and show partial-filter guidance. The frame meter stays under the jank threshold.

Planned API surface

filter.mode: 'contains' | 'regex'filter.regex.maxLengthfilter.regex.rejectNestedQuantifiersfilter.regex.timeBudgetMsonFilterRejected

Acceptance criteria

  • Contains mode escapes regex metacharacters. (pending)
  • Nested quantifier detection rejects the known catastrophic pattern classes in the fixture list. (pending)
  • Filtering yields to the main thread and aborts when timeBudgetMs is exceeded. (pending)
  • The rejection message is announced and associated with the input. (pending)