mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -529,7 +529,7 @@ RedirectEngine.prototype.compileRuleFromStaticFilter = function(line) {
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
RedirectEngine.prototype.reFilterParser = /^(?:\|\|([^\/:?#^]+)|\*)([^$]+)?\$([^$]+)$/;
|
RedirectEngine.prototype.reFilterParser = /^(?:\|\|([^\/:?#^]+)|\*?)([^$]+)?\$([^$]+)$/;
|
||||||
|
|
||||||
RedirectEngine.prototype.supportedTypes = new Map([
|
RedirectEngine.prototype.supportedTypes = new Map([
|
||||||
[ 'css', 'stylesheet' ],
|
[ 'css', 'stylesheet' ],
|
||||||
|
|
Loading…
Reference in a new issue