-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Regular expression flags in procedural cosmetic filters #3372
Comments
The syntax is the same a literal javascript regex flags:
Only two flags are supported: I partially checked with some filter lists known to use procedural selectors and I could not find any ambiguity. If ever someone needs to lookup for a string literal like |
Would |
String literal. I don't want special syntax such as wildcards -- that is why regex literals are supported, to take care of when a string literal is not enough. |
So the proper solution to make |
Just curious, why is it pointless? |
If it matches it matches, doesn't matter how many times. |
So am I to understand that the |
You only need to match once for the filter to trigger. |
Currently, it looks like the procedural cosmetic filter that can take in regex are not able to take in other trailing flags such as
/g
/i
/m
or even within the regex like/(?i)example/
.Can support for these be added? They can improve efficiency of rules that can use them and reduce filter length/number of some filters.
The text was updated successfully, but these errors were encountered: