mirror of https://github.com/gorhill/uBlock.git
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.
This commit is contained in:
parent
7e4b920bc7
commit
cb5437b161
|
@ -529,7 +529,7 @@ RedirectEngine.prototype.compileRuleFromStaticFilter = function(line) {
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
RedirectEngine.prototype.reFilterParser = /^(?:\|\|([^\/:?#^]+)|\*)([^$]+)?\$([^$]+)$/;
|
||||
RedirectEngine.prototype.reFilterParser = /^(?:\|\|([^\/:?#^]+)|\*?)([^$]+)?\$([^$]+)$/;
|
||||
|
||||
RedirectEngine.prototype.supportedTypes = new Map([
|
||||
[ 'css', 'stylesheet' ],
|
||||
|
|
Loading…
Reference in New Issue