Skip to content

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

Open
TsekaLuk wants to merge 1 commit intoopenclaw:mainfrom
TsekaLuk:codex/fix-ws-control-regex-lint
Open

fix(gateway): avoid no-control-regex lint failure in ws sanitizer#15610
TsekaLuk wants to merge 1 commit intoopenclaw:mainfrom
TsekaLuk:codex/fix-ws-control-regex-lint

Conversation

@TsekaLuk
Copy link
Contributor

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

@openclaw-barnacle
Copy link

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle bot added stale Marked as stale due to inactivity and removed stale Marked as stale due to inactivity labels Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant