|
19 | 19 | Home: https://github.com/gorhill/uBlock
|
20 | 20 | */
|
21 | 21 |
|
22 |
| -'use strict'; |
| 22 | +import * as makeScriptlet from './make-scriptlets.js'; |
| 23 | +import * as sfp from './js/static-filtering-parser.js'; |
23 | 24 |
|
24 |
| -/******************************************************************************/ |
| 25 | +import { createHash, randomBytes } from 'crypto'; |
25 | 26 |
|
| 27 | +import { dnrRulesetFromRawLists } from './js/static-dnr-filtering.js'; |
26 | 28 | import fs from 'fs/promises';
|
27 | 29 | import https from 'https';
|
28 | 30 | import path from 'path';
|
29 | 31 | import process from 'process';
|
30 |
| -import { createHash, randomBytes } from 'crypto'; |
31 | 32 | import redirectResourcesMap from './js/redirect-resources.js';
|
32 |
| -import { dnrRulesetFromRawLists } from './js/static-dnr-filtering.js'; |
33 |
| -import * as sfp from './js/static-filtering-parser.js'; |
34 |
| -import * as makeScriptlet from './make-scriptlets.js'; |
35 | 33 | import { safeReplace } from './safe-replace.js';
|
36 | 34 |
|
37 | 35 | /******************************************************************************/
|
@@ -106,8 +104,7 @@ const log = (text, silent = false) => {
|
106 | 104 | const urlToFileName = url => {
|
107 | 105 | return url
|
108 | 106 | .replace(/^https?:\/\//, '')
|
109 |
| - .replace(/\//g, '_') |
110 |
| - ; |
| 107 | + .replace(/\//g, '_'); |
111 | 108 | };
|
112 | 109 |
|
113 | 110 | const fetchText = (url, cacheDir) => {
|
@@ -365,8 +362,7 @@ async function processNetworkFilters(assetDetails, network) {
|
365 | 362 | log(plainGood
|
366 | 363 | .filter(rule => Array.isArray(rule._warning))
|
367 | 364 | .map(rule => rule._warning.map(v => `\t\t${v}`))
|
368 |
| - .join('\n'), |
369 |
| - true |
| 365 | + .join('\n'), true |
370 | 366 | );
|
371 | 367 |
|
372 | 368 | const regexes = rules.filter(rule => isGood(rule) && isRegex(rule));
|
|
0 commit comments