Skip to content

Commit b185c39

Browse files
committed
updated convert.ts
1 parent f775591 commit b185c39

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/core/format/Convert.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,7 @@ export class Convert {
168168
const rawString = Convert.rstr2utf8(input);
169169
let result = '';
170170
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-
}
171+
result += rawString.charCodeAt(i).toString(16).padStart(2, '0');
177172
}
178173
return result;
179174
}

0 commit comments

Comments
 (0)