Skip to content

Update regex to preserve specific paths in sanitization#42

Open
eXamadeus wants to merge 1 commit intoanomalyco:masterfrom
eXamadeus:patch-1
Open

Update regex to preserve specific paths in sanitization#42
eXamadeus wants to merge 1 commit intoanomalyco:masterfrom
eXamadeus:patch-1

Conversation

@eXamadeus
Copy link

@eXamadeus eXamadeus commented Feb 5, 2026

Description

Fixes #41

The change is to extend the power of the negative lookbehind to allow for more path structures.

Verification

This Regexr link has good examples of how this works.

Screenshot if the link ever breaks

Blue highlights show what is replaced with Claude

image

@eXamadeus
Copy link
Author

eXamadeus commented Feb 5, 2026

@rekram1-node let me know if you'd like a deeper show of testing. I validated the regex pretty thoroughly, but I'm not 100% certain on how Anthropic will handle the Windows paths.

I can't imagine it causing issues and it didn't seem to in my testing. But I didn't test the auth plugin on Windows either /shrug

@allisoneer
Copy link

Just spent a day chasing down a gnarly problem that this exact PR fixes. @rekram1-node you probably don't like being @ mentioned but this PR being merged would've saved me quite the amount of hours and pain.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opencode->Claude replacement mangles certain paths still

2 participants