Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Jul 15, 2024
1 parent 1d55115 commit c628ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/services/Assertion.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit c628ed8

Please sign in to comment.