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

Function isAsciiString

deps/undici/src/lib/web/fetch/formdata-parser.js:17–24  ·  view source on GitHub ↗

* @param {string} chars

(chars)

Source from the content-addressed store, hash-verified

15 * @param {string} chars
16 */
17function isAsciiString (chars) {
18 for (let i = 0; i < chars.length; ++i) {
19 if ((chars.charCodeAt(i) & ~0x7F) !== 0) {
20 return false
21 }
22 }
23 return true
24}
25
26/**
27 * @see https://andreubotella.github.io/multipart-form-data/#multipart-form-data-boundary

Callers 1

multipartFormDataParserFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected