Skip to content

Commit

Permalink
Use code quotes for filters in logger export feature
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Dec 14, 2024
1 parent c279cde commit 9c75814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/logger-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('|'));
Expand Down

0 comments on commit 9c75814

Please sign in to comment.