Skip to content

Commit f0e20f9

Browse files
Update TextDecoder string size threshold
1 parent 345731b commit f0e20f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/utf8.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function safeStringFromCharCode(units: Array<number> | Uint16Array) {
9898
return result;
9999
}
100100

101-
const MIN_TEXT_DECODER_STRING_LENGTH = 32;
101+
const MIN_TEXT_DECODER_STRING_LENGTH = 200;
102102
const defaultEncoding = "utf-8";
103103
const sharedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder(defaultEncoding) : null;
104104

0 commit comments

Comments
 (0)