Skip to content

Fix empty alternative in ClickFix clipboard regex - #34322

Closed
cnotin wants to merge 1 commit into
uBlockOrigin:masterfrom
cnotin:fix-clickfix-empty-alternative
Closed

cnotin wants to merge 1 commit into
uBlockOrigin:masterfrom
cnotin:fix-clickfix-empty-alternative

Conversation

@cnotin

@cnotin cnotin commented Aug 31, 2026 •

Copy link
Copy Markdown

Fixes #34321.

Remove the duplicate alternation character from the ClickFix clipboard regex. The previous || introduced an empty alternative, causing the regex to match every clipboard string.

All three synchronized copies are updated:

  • the global prevent-clipboard-write rule
  • the exception for community-scripts.org and massgrave.dev
  • the specific sites.google.com rule

Tested that sensor.chambre_humidite no longer matches, while representative cmd and iex( inputs still match.

@cnotin

cnotin commented Aug 31, 2026 •

Copy link
Copy Markdown
Author

This regression was introduced by @stephenhawk8054 in commit 2c848f1 while broadening the iex(irm ...) pattern to also cover iwr: 2c848f1
If you could confirm please

Regression introduced by @stephenhawk8054 in 2c848f1.
@cnotin
cnotin force-pushed the fix-clickfix-empty-alternative branch from 6475200 to 7a52bff Compare August 31, 2026 21:19
@u-RraaLL

Copy link
Copy Markdown
Contributor

Thanks. gorhill missed the PR and already fixed it in: dffea52

@u-RraaLL u-RraaLL closed this Aug 31, 2026
@cnotin
cnotin deleted the fix-clickfix-empty-alternative branch August 31, 2026 21:45
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.

prevent-clipboard-write regex contains empty alternative and matches all clipboard text

2 participants