MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / normalizeName

Function normalizeName

packages/core/fetch/index.mjs:47–55  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

45 }
46
47 function normalizeName(name) {
48 if (typeof name !== "string") {
49 name = String(name);
50 }
51 if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name)) {
52 throw new TypeError("Invalid character in header field name");
53 }
54 return name.toLowerCase();
55 }
56
57 function normalizeValue(value) {
58 if (typeof value !== "string") {

Callers 1

index.mjsFile · 0.85

Calls 2

StringClass · 0.50
testMethod · 0.45

Tested by

no test coverage detected