You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is related to shortcut extractions. The shortcut should not be extracted from regexp disjunctions. For example, if you change the rule /(regular|bold)\.woff2$/$domain=adguard.info to /(bold|regular)\.woff2$/$domain=adguard.info, the effect remains the same because the shortcut is determined by the length of the strings, not their order. In this case, .woff2 should be extracted as the shortcut, not regular or bold, because .woff2 is the one which always present in all possible matching URLs. Because of this, I will change the issue title.
scripthunter7
changed the title
Blocking only first match by regexp, if it has | sign
Ignore regexp conjunctions in shortcut extraction
Jan 31, 2025
scripthunter7
changed the title
Ignore regexp conjunctions in shortcut extraction
Ignore regexp disjunctions in shortcut extraction
Jan 31, 2025
Please answer the following questions for yourself before submitting an issue
AdGuard Extension version
4.4.49
Browser version
FireFox v115.16.1 ESR
OS version
Win7SP1
Ad Blocking
No response
Privacy
No response
Social
No response
Annoyances
No response
Security
No response
Other
No response
Language-specific
No response
What Tracking protection options do you have enabled?
No response
Issue Details
Steps to reproduce:
/(regular|bold)\.woff2$/$domain=adguard.info
Expected Behavior
Both, regular.woff2 and bold.woff2 fonts must be blocked.
Actual Behavior
Only first match with rule is blocked.
Screenshots
Screenshot:
Additional Information
If i use rule:
/\w{4,7}\.woff2$/$domain=adguard.info
, then blocked both fonts.Screenshot:
The text was updated successfully, but these errors were encountered: