From 88f7e63c5606eeb24f1a442f97f6a8840ddf163e Mon Sep 17 00:00:00 2001 From: Chris van Marle Date: Fri, 12 Oct 2018 15:49:43 +0200 Subject: [PATCH] Use template strings and \n as suggested in review --- src/core/operations/RegularExpression.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/operations/RegularExpression.mjs b/src/core/operations/RegularExpression.mjs index 92004ed2..b0c638d4 100644 --- a/src/core/operations/RegularExpression.mjs +++ b/src/core/operations/RegularExpression.mjs @@ -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`; } }