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'} |
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'^([^/*|@"!]*?)#([@?])?#(.+)$') |