Index: abp/filters/parser.py |
=================================================================== |
--- a/abp/filters/parser.py |
+++ b/abp/filters/parser.py |
@@ -140,9 +140,9 @@ |
Include = _line_type('Include', 'target', '%include {0.target}%') |
-METADATA_REGEXP = re.compile(r'!\s*(\w+)\s*:\s*(.*)') |
+METADATA_REGEXP = re.compile(r'!\s*([\w-]+)\s*:\s*(.*)') |
METADATA_KEYS = {'Homepage', 'Title', 'Expires', 'Checksum', 'Redirect', |
- 'Version'} |
+ 'Version', 'Diff-URL', 'Diff-Expires'} |
Sebastian Noack
2018/08/21 19:42:45
I would prefer if python-abp would be agnostic of
Vasily Kuznetsov
2018/08/22 13:10:50
Makes sense and I support it. I actually thought i
Sebastian Noack
2018/08/22 14:31:06
You are right, well spotted.
rhowell
2018/08/27 22:06:26
It appears this was done to prevent mistaking a co
|
INCLUDE_REGEXP = re.compile(r'%include\s+(.+)%') |
HEADER_REGEXP = re.compile(r'\[(Adblock(?:\s*Plus\s*[\d\.]+?)?)\]', flags=re.I) |
HIDING_FILTER_REGEXP = re.compile(r'^([^/*|@"!]*?)#([@?])?#(.+)$') |