Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix string encoder
  • Loading branch information
bcldvd committed Feb 27, 2022
1 parent ea07d3f commit 98abc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/string-encoder.helper.ts
Expand Up @@ -2,7 +2,7 @@ export function stringEncode(string: string) {
let encodedString = '';
for (let i = 0; i < string.length; i++) {
let charCodePointHex = string.charCodeAt(i).toString(16);
encodedString += `\\u${charCodePointHex}`;
encodedString += `\\u{${charCodePointHex}}`;
}
return encodedString;
}

0 comments on commit 98abc59

Please sign in to comment.