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

Add flags support for ':matches-css()' regex patterns #138

Open
ameshkov opened this issue Nov 25, 2021 · 0 comments
Open

Add flags support for ':matches-css()' regex patterns #138

ameshkov opened this issue Nov 25, 2021 · 0 comments

Comments

@ameshkov
Copy link
Member

@realodix commented on Thu Nov 25 2021

Looks like AdGuard doesn't support regex flags for :matches-css(). I didn't notice until I saw AdguardTeam/AdguardFilters#101083 and read the documentation, because in the diff.txt file there is no message.

<style type="text/css">
  #to-be-blocked::before {
    content: "Advertisement"
  }
</style>
<div id="to-be-blocked" class="banner"></div>
<div id="not-to-be-blocked" class="banner"></div>

##div.banner:matches-css-before(content: /adv/i)

uBO requires using the i flag to be case insensitive.

https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters#subjectmatches-cssarg

@adguard-bot adguard-bot changed the title :matches-css (regex flags) Add flags support for :matches-css() regex patterns Aug 4, 2022
@adguard-bot adguard-bot changed the title Add flags support for :matches-css() regex patterns Add flags support for ':matches-css()' regex patterns Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants