From ce3178cb16a99db9ce78f1f84ca78932fc1c336f Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 18 Dec 2015 12:19:13 -0500 Subject: [PATCH] this fixes good Adguard filters rejected due to `empty` keyword --- src/js/static-net-filtering.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 5d9f6b28d..af75be371 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -1429,7 +1429,10 @@ FilterParser.prototype.parseOptions = function(s) { this.unsupported = true; break; } - + // Used by Adguard, purpose is unclear -- just ignore for now. + if ( opt === 'empty' ) { + continue; + } // Unrecognized filter option: ignore whole filter. this.unsupported = true; break;