- Fixed parsing issue with recent easylist.txt;
- fixed a link to easylist (thanks https://github.com/limonte).
- Added support for regex rules (thanks https://github.com/mlyko).
- Fixed an issue with blank lines in filter files (thanks https://github.com/skrypka);
- fixed an issue with applying rules with 'domain' option when domain doesn't have a dot (e.g. 'localhost');
- Python 2.6 and Python 3.2 support is dropped; adblockparser likely still work in these interpreters, but this is no longer checked by tests.
- AdblockRule now caches the compiled regexes (thanks https://github.com/mozbugbox);
- Fixed an issue with "domain" option handling (thanks https://github.com/nbraem for the bug report and a test case);
- cleanups and test improvements.
- Switch to setuptools;
- better
__repr__
forAdblockRule
; - Python 3.4 support is confirmed;
- testing improvements.
This release provides much faster AdblockRules.should_block() method for rules without options and rules with 'domain' option.
- better combined regex for option-less rules that makes re2 library always use DFA without falling back to NFA;
- an index for rules with domains;
params
method arguments are renamed tooptions
for consistency.
By default AdblockRules
autodetects re2 library and uses
it if a compatible version is detected.
Initial release.