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

Cannot parse HTML filtering rule with wildcard attribute #917

Closed
ameshkov opened this Issue Nov 21, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@ameshkov
Member

ameshkov commented Nov 21, 2016

11-21 08:28:45.430 W/com.adguard.filter.rules.h(2426): [pool-2-thread-12] Error creating filter rule indiatimes.com$$script[wildcard="*var _0x*false;if(!_0x*}(document,window));*"][max-length="8000"]:
11-21 08:28:45.430 W/com.adguard.filter.rules.h(2426): java.util.regex.PatternSyntaxException: Syntax error in regexp pattern near index 29
11-21 08:28:45.430 W/com.adguard.filter.rules.h(2426): ^.*var _0x.*false;if\(!_0x.*}\(document,window\)\);.*$
11-21 08:28:45.430 W/com.adguard.filter.rules.h(2426):                              ^
11-21 08:28:45.430 W/com.adguard.filter.rules.h(2426):     at java.util.regex.Pattern.compileImpl(Native Method) ~[na:0.0]
11-21 08:28:45.430 W/com.adguard.filter.rules.h(2426):     at java.util.regex.Pattern.compile(Pattern.java:1340) ~[na:0.0]
11-21 08:28:45.430 W/com.adguard.filter.rules.h(2426):     at java.util.regex.Pattern.<init>(Pattern.java:1324) ~[na:0.0]
11-21 08:28:45.430 W/com.adguard.filter.rules.h(2426):     at java.util.regex.Pattern.compile(Pattern.java:971) ~[na:0.0]
11-21 08:28:45.430 W/com.adguard.filter.rules.h(2426):     at com.adguard.commons.c.d.<init>(Unknown Source) ~[na:0.0]
11-21 08:28:45.430 W/com.adguard.filter.rules.h(2426):     at com.adguard.filter.rules.b.<init>(Unknown Source) ~[na:0.0]

@ameshkov ameshkov added the Bug label Nov 21, 2016

@ameshkov ameshkov added this to the 2.8 milestone Nov 21, 2016

@nkartyshov

This comment has been minimized.

Show comment
Hide comment
@nkartyshov

nkartyshov Nov 22, 2016

Member

fixed

Member

nkartyshov commented Nov 22, 2016

fixed

@nkartyshov nkartyshov closed this Nov 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment