-
Notifications
You must be signed in to change notification settings - Fork 81
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
Some RegExp filters are not parsed properly #1038
Comments
Yes, while it's still a technically valid regex it seems that what you're calling "weird" is a bug (a typo) - an unwanted excape char Seems lika a bug in uBO, because the fixed version of the regex not working in uBO as well: The bug in uBO is about distinguishing between cosmetic filters - which contain |
It's just parser error. Swap
|
I fixed it yesterday locally, but for the next dev cycle I had planned to rewrite and separate FilterParser from static network filtering engine (so that it can be loaded separately in auxiliary pages for example), so it's probably going to be fixed as part of the rewrite. |
This won't work either, you have a typo in the example, you actually didn't swap it, you meant: We got 3 bugs/typos already: Typo in the regex, a bug in uBO parser, and a typo in the comment, but hey - no offence, Human beings make mistakes. |
This is simplest example of filter which does not work. |
Because of lack of installation of dev-builds to catch these bugs. Had more people installed devbuilds, this would have been caught before the stable release occurred. |
Ok then, good to know, coz your previous comment looks confusing, it looks more like you wanted to provide the simplest example of filter which does work, especially after placing the example after previously suggesting swapping and providing an identical example, why duplicating the example then. |
Prerequisites
Description
This EasyList filter is not parsed properly. An error is logged to the background console instead:
The RegExp is kind of weird, but nevertheless is a valid RegExp.
A specific URL where the issue occurs
chrome://extensions/
Steps to Reproduce
Expected behavior:
Filter parsed correctly.
Actual behavior:
Error logged to the background console.
Your environment
The text was updated successfully, but these errors were encountered: