#15610: fix(gateway): avoid no-control-regex lint failure in ws sanitizer
gateway
stale
size: XS
## Summary
Replace the control-character range regex literal with a Unicode property class in gateway websocket header sanitization.
## Why
`oxlint` currently reports:
- `eslint(no-control-regex): Unexpected control characters`
- `src/gateway/server/ws-connection.ts`
This causes `pnpm check` to fail on merge refs and cascades into unrelated PR CI failures.
## Change
- `LOG_HEADER_CONTROL_REGEX`: from `/[\u0000-\u001f\u007f-\u009f]/g`
- to `/\p{Cc}/gu`
Behavior is preserved (control characters are still stripped), while satisfying lint.
## Validation
- `pnpm check`
Most Similar PRs
#19134: fix(gateway): specify utf-8 encoding on SSE res.write() calls
by pierreeurope · 2026-02-17
61.4%
#21186: fix(gateway): strict loopback guard for Control UI (v2)
by dinakars777 · 2026-02-19
61.3%
#23420: Gateway: tighten WS connect schema bounds and validation
by bmendonca3 · 2026-02-22
61.2%
#23361: Gateway: reject scope assertions without identity binding
by bmendonca3 · 2026-02-22
61.1%
#20089: fix(gateway): preserve control-ui scopes when dangerouslyDisableDev...
by vashkartik · 2026-02-18
60.7%
#23352: Gateway: enforce origin checks for browser-context WS clients
by bmendonca3 · 2026-02-22
60.6%
#23465: Gateway: strengthen Control UI security headers
by bmendonca3 · 2026-02-22
60.5%
#23688: fix(gateway): accept raw IP addresses in gateway.bind for backward ...
by arosstale · 2026-02-22
60.4%
#8504: fix: prevent false positives in isSilentReplyText for CJK content
by hanxiao · 2026-02-04
60.2%
#21326: Security/UI: harden Control UI gatewayUrl URL overrides
by bmendonca3 · 2026-02-19
59.7%