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 f7fe129 commit a8b3263Copy full SHA for a8b3263
src/primitives/utils.ts
@@ -251,7 +251,7 @@ export const toUTF8 = (arr: number[]): string => {
251
252
// 2-byte sequence (110xxxxx 10xxxxxx)
253
if (byte >= 0xc0 && byte <= 0xdf) {
254
- const avail = arr.length - (i + 1) // number of bytes available after current
+ const avail = arr.length - (i + 1)
255
const byte2 = avail >= 1 ? arr[i + 1] : 0
256
skip = Math.min(1, avail)
257
0 commit comments