MCPcopy Create free account
hub / github.com/vercel/vercel / isValidHeaderName

Function isValidHeaderName

packages/cli/src/util/dev/transforms.ts:198–200  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

196const HEADER_VALUE_RE = /^[-\w:;.,/\\"'?!(){}[\]@<>=+*#$&`|~%^ ]+$/;
197
198function isValidHeaderName(name: string): boolean {
199 return name.length > 0 && HEADER_NAME_RE.test(name);
200}
201
202function isValidHeaderValue(value: string): boolean {
203 return value.length > 0 && HEADER_VALUE_RE.test(value);

Callers 1

applyTransformFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected