Skip to content

Commit a8b3263

Browse files
Update utils.ts
1 parent f7fe129 commit a8b3263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/primitives/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export const toUTF8 = (arr: number[]): string => {
251251

252252
// 2-byte sequence (110xxxxx 10xxxxxx)
253253
if (byte >= 0xc0 && byte <= 0xdf) {
254-
const avail = arr.length - (i + 1) // number of bytes available after current
254+
const avail = arr.length - (i + 1)
255255
const byte2 = avail >= 1 ? arr[i + 1] : 0
256256
skip = Math.min(1, avail)
257257

0 commit comments

Comments
 (0)