MCPcopy Create free account
hub / github.com/expressjs/body-parser / firstchar

Function firstchar

lib/types/json.js:188–194  ·  view source on GitHub ↗

* Get the first non-whitespace character in a string. * * @param {string} str * @return {function} * @private

(str)

Source from the content-addressed store, hash-verified

186 */
187
188function firstchar (str) {
189 var match = FIRST_CHAR_REGEXP.exec(str)
190
191 return match
192 ? match[1]
193 : undefined
194}
195
196/**
197 * Get the charset of a request.

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected