← Back to PRs

#15610: fix(gateway): avoid no-control-regex lint failure in ws sanitizer

by TsekaLuk open 2026-02-13 17:24 View on GitHub →
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