MCPcopy Create free account
hub / github.com/denoland/std / isKeyStart

Function isKeyStart

http/unstable_structured_fields.ts:467–469  ·  view source on GitHub ↗

Check if character is valid at the start of a key (lcalpha or "*")

(c: string)

Source from the content-addressed store, hash-verified

465
466/** Check if character is valid at the start of a key (lcalpha or "*") */
467function isKeyStart(c: string): boolean {
468 return isLcalpha(c) || c === "*";
469}
470
471/** Check if character is valid within a key (lcalpha / DIGIT / "_" / "-" / "." / "*") */
472function isKeyChar(c: string): boolean {

Callers 2

parseKeyFunction · 0.85
validateKeyFunction · 0.85

Calls 1

isLcalphaFunction · 0.85

Tested by

no test coverage detected