From cb5437b1619ed4e84b7b1319b400f44f98df117a Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 14 Jun 2020 15:09:35 -0400 Subject: [PATCH] Support redirect rules with no pattern Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/977 No pattern will imply `*` for the redirect destination part of the rule. --- src/js/redirect-engine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/redirect-engine.js b/src/js/redirect-engine.js index 3f607cfe6..9a94b2fc0 100644 --- a/src/js/redirect-engine.js +++ b/src/js/redirect-engine.js @@ -529,7 +529,7 @@ RedirectEngine.prototype.compileRuleFromStaticFilter = function(line) { /******************************************************************************/ -RedirectEngine.prototype.reFilterParser = /^(?:\|\|([^\/:?#^]+)|\*)([^$]+)?\$([^$]+)$/; +RedirectEngine.prototype.reFilterParser = /^(?:\|\|([^\/:?#^]+)|\*?)([^$]+)?\$([^$]+)$/; RedirectEngine.prototype.supportedTypes = new Map([ [ 'css', 'stylesheet' ],