From bb14103fc30d2c6fef178653faca331b3c8e7f3a Mon Sep 17 00:00:00 2001 From: planctus Date: Tue, 21 Jan 2020 15:00:27 +0100 Subject: [PATCH] fix(ecl-diff): linter issue --- php/php_storybook/scripts/ecl-diff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/php_storybook/scripts/ecl-diff.js b/php/php_storybook/scripts/ecl-diff.js index 9a84a044f..05f133d31 100755 --- a/php/php_storybook/scripts/ecl-diff.js +++ b/php/php_storybook/scripts/ecl-diff.js @@ -304,7 +304,7 @@ yargsInteractive() // The html we get is enriched by a syntax highlighter. eclMarkup = decode(eclMarkup.replace(/<\/?[^>]+(>|$)/g, '')); - eclMarkupMinusDiv = eclMarkup.replace(/^
/, ''); + const eclMarkupMinusDiv = eclMarkup.replace(/^
/, ''); if (eclMarkupMinusDiv !== eclMarkup) { eclMarkup = eclMarkupMinusDiv.replace(/<\/div>$/, ''); }