Skip to content

Commit

Permalink
Support redirect rules with no pattern
Browse files Browse the repository at this point in the history
Related issue:
- uBlockOrigin/uBlock-issues#977

No pattern will imply `*` for the redirect destination
part of the rule.
  • Loading branch information
gorhill committed Jun 14, 2020
1 parent 7e4b920 commit cb5437b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/redirect-engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ RedirectEngine.prototype.compileRuleFromStaticFilter = function(line) {

/******************************************************************************/

RedirectEngine.prototype.reFilterParser = /^(?:\|\|([^\/:?#^]+)|\*)([^$]+)?\$([^$]+)$/;
RedirectEngine.prototype.reFilterParser = /^(?:\|\|([^\/:?#^]+)|\*?)([^$]+)?\$([^$]+)$/;

RedirectEngine.prototype.supportedTypes = new Map([
[ 'css', 'stylesheet' ],
Expand Down

0 comments on commit cb5437b

Please sign in to comment.