From e086952d09c1d8450d1aefe094179a2eae0c5a4c Mon Sep 17 00:00:00 2001 From: Chris van Marle Date: Thu, 11 Oct 2018 15:52:58 +0200 Subject: [PATCH] Fix lint errors --- src/core/operations/RegularExpression.mjs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/operations/RegularExpression.mjs b/src/core/operations/RegularExpression.mjs index c014394d..92004ed2 100644 --- a/src/core/operations/RegularExpression.mjs +++ b/src/core/operations/RegularExpression.mjs @@ -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 += "" + Utils.escapeHtml(m[0]) + "";