MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / normalizeName

Function normalizeName

libraries/p5.js:7550–7558  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

7548 }
7549
7550 function normalizeName(name) {
7551 if (typeof name !== 'string') {
7552 name = String(name)
7553 }
7554 if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) {
7555 throw new TypeError('Invalid character in header field name')
7556 }
7557 return name.toLowerCase()
7558 }
7559
7560 function normalizeValue(value) {
7561 if (typeof value !== 'string') {

Callers 1

p5.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected