Skip to content

Commit

Permalink
Fix escaping of characters in replaceAllUnescapedWithEscaped() function
Browse files Browse the repository at this point in the history
  • Loading branch information
Mearman committed Mar 10, 2024
1 parent 7533301 commit 6375d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/escapeCharacters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function replaceAllUnescapedWithEscaped(
if (unescaped in EscapeCharacters) {
const escaped = toEscaped(unescaped as UnescapedCharacter)
if (wrap) {
escapedResult += `${escaped}`;
escapedResult += `{${escaped}}`;
} else {
escapedResult += escaped;
}
Expand Down

0 comments on commit 6375d79

Please sign in to comment.