From c628ed811e94ae72c1f96568732349225f2f82bb Mon Sep 17 00:00:00 2001 From: Matheus Nogueira Date: Mon, 15 Jul 2024 15:52:57 -0300 Subject: [PATCH] fix --- web/src/services/Assertion.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/services/Assertion.service.ts b/web/src/services/Assertion.service.ts index 2c9f39e132..a5bc923e6a 100644 --- a/web/src/services/Assertion.service.ts +++ b/web/src/services/Assertion.service.ts @@ -41,8 +41,8 @@ const AssertionService = () => ({ // \\' ==> \\' let newString = ''; let lastCharacter = ''; - for (let i = 0; i < str.length; i++) { - if (str[i] == quoteCharacter && lastCharacter != '\\') { + for (let i = 0; i < str.length; i += 1) { + if (str[i] === quoteCharacter && lastCharacter !== '\\') { newString += `\\${quoteCharacter}`; } else { newString += str[i];