Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regex on https://vidsrc.net/embed/movie?imdb=tt0425210 #2248

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

ryanbr
Copy link
Collaborator

@ryanbr ryanbr commented Jan 5, 2025

/^https?:\/\/(?:[a-z]{2}\.)?[0-9a-z]{5,16}\.[a-z]{3,7}\/[a-z](?=[a-z]{0,25}[0-9A-Z])[0-9a-zA-Z]{3,26}\/\d{4,6}(?:\?[_a-z]=[-0-9a-z]+)?$/$script,3p,match-case

Matching url: https://swamperhyphens.shop/r6779cfb13857e/108734

Causing popups since the regex isn't being properly parsed.

Reported in https://community.brave.com/t/new-tab-popup-ads-not-being-blocked/588503

Simplified the regex a bit.

@ryanbr ryanbr self-assigned this Jan 5, 2025
@ryanbr ryanbr merged commit da74730 into master Jan 5, 2025
6 checks passed
@ryanbr ryanbr deleted the fix-regeeexx branch January 5, 2025 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant