Skip to content

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

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

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
Copy Markdown
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
Copy Markdown

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
@openclaw-barnacle
Copy link
Copy Markdown

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 the stale Marked as stale due to inactivity label Mar 12, 2026
@openclaw-barnacle
Copy link
Copy Markdown

Closing due to inactivity.
If you believe this PR should be revived, post in #pr-thunderdome-dangerzone on Discord to talk to a maintainer.
That channel is the escape hatch for high-quality PRs that get auto-closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS stale Marked as stale due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant