#2781: code review, small fine tuning

This commit is contained in:
gorhill 2017-07-13 14:34:43 -04:00
parent 3aed25ff2c
commit 36317e67a2
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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',