Skip to content

Commit

Permalink
use already created var
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Aug 29, 2024
1 parent eceb130 commit 6e1b7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const escapeFunction = (string) => {
break;
}

start = i + 1;
start = escapeRegExp.lastIndex;
} while (escapeRegExp.test(string));

return escaped + string.slice(start);
Expand Down

0 comments on commit 6e1b7c0

Please # to comment.