mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Use code quotes for filters in logger export feature
This commit is contained in:
parent
c279cded17
commit
9c75814525
1 changed files with 1 additions and 1 deletions
|
|
@ -2779,7 +2779,7 @@ const loggerStats = (( ) => {
|
|||
const outputOne = [];
|
||||
for ( let i = 0; i < fields.length; i++ ) {
|
||||
const field = fields[i];
|
||||
let code = /\b(?:www\.|https?:\/\/)/.test(field) ? '`' : '';
|
||||
const code = i === 1 || /\b(?:www\.|https?:\/\/)/.test(field) ? '`' : '';
|
||||
outputOne.push(` ${code}${field.replace(/\|/g, '\\|')}${code} `);
|
||||
}
|
||||
outputAll.push(outputOne.join('|'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue