MCPcopy Create free account
hub / github.com/nodejs/node / isAsciiString

Function isAsciiString

deps/undici/undici.js:6346–6353  ·  view source on GitHub ↗
(chars)

Source from the content-addressed store, hash-verified

6344 var decoder = new TextDecoder();
6345 var decoderIgnoreBOM = new TextDecoder("utf-8", { ignoreBOM: true });
6346 function isAsciiString(chars) {
6347 for (let i = 0; i < chars.length; ++i) {
6348 if ((chars.charCodeAt(i) & ~127) !== 0) {
6349 return false;
6350 }
6351 }
6352 return true;
6353 }
6354 __name(isAsciiString, "isAsciiString");
6355 function validateBoundary(boundary) {
6356 const length = boundary.length;

Callers 1

multipartFormDataParserFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected