mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 23:35:01 -04:00
Fix lint errors
This commit is contained in:
parent
dce542a8a9
commit
e086952d09
1 changed files with 8 additions and 8 deletions
|
@ -227,7 +227,7 @@ function regexList (input, regex, displayTotal, matches, captureGroups) {
|
|||
*/
|
||||
function regexHighlight (input, regex, displayTotal) {
|
||||
let output = "",
|
||||
title = "",
|
||||
title = "",
|
||||
m,
|
||||
hl = 1,
|
||||
i = 0,
|
||||
|
@ -242,13 +242,13 @@ function regexHighlight (input, regex, displayTotal) {
|
|||
// Add up to match
|
||||
output += Utils.escapeHtml(input.slice(i, m.index));
|
||||
|
||||
title = "Offset: " + m.index + " ";
|
||||
if (m.length > 1) {
|
||||
title += "Groups: ";
|
||||
for ( let n = 1; n < m.length; ++n) {
|
||||
title += n + ": " + m[n] + " ";
|
||||
}
|
||||
}
|
||||
title = "Offset: " + m.index + " ";
|
||||
if (m.length > 1) {
|
||||
title += "Groups: ";
|
||||
for (let n = 1; n < m.length; ++n) {
|
||||
title += n + ": " + m[n] + " ";
|
||||
}
|
||||
}
|
||||
|
||||
// Add match with highlighting
|
||||
output += "<span class='hl"+hl+"' title='"+title+"'>" + Utils.escapeHtml(m[0]) + "</span>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue