We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 633253b commit 86a716cCopy full SHA for 86a716c
src/core/format/Convert.ts
@@ -168,12 +168,7 @@ export class Convert {
168
const rawString = Convert.rstr2utf8(input);
169
let result = '';
170
for (let i = 0; i < rawString.length; i++) {
171
- if (rawString.charCodeAt(i) < 16) {
172
- // Add insignificant zero for control chars (0x00 - 0x0f)
173
- result += rawString.charCodeAt(i).toString(16).padStart(2, '0');
174
- } else {
175
- result += rawString.charCodeAt(i).toString(16);
176
- }
+ result += rawString.charCodeAt(i).toString(16).padStart(2, '0');
177
}
178
return result;
179
0 commit comments