From 0b3a56654c4145d2cba3d36b39cc51ec275b1345 Mon Sep 17 00:00:00 2001 From: Mikolaj Gasior Date: Mon, 30 Oct 2023 09:32:45 +0100 Subject: [PATCH] Fix invalid variables in js code --- replace-string/dist/index.js | 17 ++++++++--------- replace-string/src/index.js | 17 ++++++++--------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/replace-string/dist/index.js b/replace-string/dist/index.js index 9aafe6b..91ec438 100644 --- a/replace-string/dist/index.js +++ b/replace-string/dist/index.js @@ -30052,31 +30052,30 @@ try { } // Action - strToReplace = ''; - strEncoding = (inReadEncoding != '' ? inReadEncoding : 'utf-8'); + outReplacedString = ''; + outEncoding = (inReadEncoding != '' ? inReadEncoding : 'utf-8'); if (inReadFromFile != '') { - strToReplace = fs.readFileSync(inReadFromFile, strEncoding); + outReplacedString = fs.readFileSync(inReadFromFile, outEncoding); } else { - strToReplace = inString; + outReplacedString = inString; } if (inReplaceRegexArr.length > 1) { for (i=0; i 1) { for (i=0; i