mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
#2781: code review, small fine tuning
This commit is contained in:
parent
3aed25ff2c
commit
36317e67a2
1 changed files with 3 additions and 3 deletions
|
@ -1802,9 +1802,9 @@ FilterParser.prototype.parse = function(raw) {
|
|||
var reHostnameToken = /^[0-9a-z]+/;
|
||||
var reGoodToken = /[%0-9a-z]{2,}/g;
|
||||
var reRegexToken = /[%0-9A-Za-z]{2,}/g;
|
||||
var reRegexTokenAbort = /[([{]/;
|
||||
var reRegexBadPrefix = /(^|\\|[^\\]\.|\*)$/;
|
||||
var reRegexBadSuffix = /^(\*|[^\\]\.|\\[dw]|[([{?*]|$)/;
|
||||
var reRegexTokenAbort = /[([]/;
|
||||
var reRegexBadPrefix = /(^|[^\\]\.|[*?{}\\])$/;
|
||||
var reRegexBadSuffix = /^([^\\]\.|\\[dw]|[([{}?*]|$)/;
|
||||
|
||||
var badTokens = new Set([
|
||||
'com',
|
||||
|
|
Loading…
Reference in a new issue