mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-09 07:45:00 -04:00
Use template strings and \n as suggested in review
This commit is contained in:
parent
e086952d09
commit
88f7e63c56
1 changed files with 3 additions and 3 deletions
|
@ -242,11 +242,11 @@ function regexHighlight (input, regex, displayTotal) {
|
|||
// Add up to match
|
||||
output += Utils.escapeHtml(input.slice(i, m.index));
|
||||
|
||||
title = "Offset: " + m.index + " ";
|
||||
title = `Offset: ${m.index}\n`;
|
||||
if (m.length > 1) {
|
||||
title += "Groups: ";
|
||||
title += "Groups:\n";
|
||||
for (let n = 1; n < m.length; ++n) {
|
||||
title += n + ": " + m[n] + " ";
|
||||
title += `${n}: ${m[n]}\n`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue