From f164dcdd7020b315c31987b24cc99daae0cdf088 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Mon, 17 Jul 2017 13:19:08 +0000 Subject: [PATCH] Fixed Diff highlighting classes --- src/core/operations/StrUtils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/operations/StrUtils.js b/src/core/operations/StrUtils.js index 093de39b..af34c152 100755 --- a/src/core/operations/StrUtils.js +++ b/src/core/operations/StrUtils.js @@ -359,9 +359,9 @@ const StrUtils = { for (let i = 0; i < diff.length; i++) { if (diff[i].added) { - if (showAdded) output += "" + Utils.escapeHtml(diff[i].value) + ""; + if (showAdded) output += "" + Utils.escapeHtml(diff[i].value) + ""; } else if (diff[i].removed) { - if (showRemoved) output += "" + Utils.escapeHtml(diff[i].value) + ""; + if (showRemoved) output += "" + Utils.escapeHtml(diff[i].value) + ""; } else { output += Utils.escapeHtml(diff[i].value); } @@ -424,7 +424,7 @@ const StrUtils = { } if (match && !inMatch) { - outputs[s] += "" + Utils.escapeHtml(samples[s][i]); + outputs[s] += "" + Utils.escapeHtml(samples[s][i]); if (samples[s].length === i + 1) outputs[s] += ""; if (s === samples.length - 1) inMatch = true; } else if (!match && inMatch) {