A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/gorhill/uBlock/commit/34504a0a1a9db37d4bb8c6a3ca2ae05942750f12 below:

Fix regex-like filter representation in logger · gorhill/uBlock@34504a0 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-3

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+3

-3

lines changed Original file line number Diff line number Diff line change

@@ -223,9 +223,6 @@ const toLogDataInternal = function(categoryBits, tokenHash, iunit) {

223 223

const domains = [];

224 224

const logData = { pattern, regex, domains, options, isRegex: false };

225 225

filterUnits[iunit].logData(logData);

226 -

if ( categoryBits & 0x001 ) {

227 -

logData.pattern.unshift('@@');

228 -

}

229 226

if ( categoryBits & 0x002 ) {

230 227

logData.options.unshift('important');

231 228

}

@@ -246,6 +243,9 @@ const toLogDataInternal = function(categoryBits, tokenHash, iunit) {

246 243

) {

247 244

raw += '*';

248 245

}

246 +

if ( categoryBits & 0x001 ) {

247 +

raw = '@@' + raw;

248 +

}

249 249

if ( domains.length !== 0 ) {

250 250

options.push(`domain=${domains.join('|')}`);

251 251

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4