fix(gateway): avoid no-control-regex lint failure in ws sanitizer#15610
Open
TsekaLuk wants to merge 1 commit intoopenclaw:mainfrom
Open
fix(gateway): avoid no-control-regex lint failure in ws sanitizer#15610TsekaLuk wants to merge 1 commit intoopenclaw:mainfrom
TsekaLuk wants to merge 1 commit intoopenclaw:mainfrom
Conversation
This was referenced Feb 13, 2026
bfc1ccb to
f92900f
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the control-character range regex literal with a Unicode property class in gateway websocket header sanitization.
Why
oxlintcurrently reports:eslint(no-control-regex): Unexpected control characterssrc/gateway/server/ws-connection.tsThis causes
pnpm checkto fail on merge refs and cascades into unrelated PR CI failures.Change
LOG_HEADER_CONTROL_REGEX: from/[\u0000-\u001f\u007f-\u009f]/g/\p{Cc}/guBehavior is preserved (control characters are still stripped), while satisfying lint.
Validation
pnpm check