Check if character is valid within a key (lcalpha / DIGIT / "_" / "-" / "." / "*")
(c: string)
| 470 | |
| 471 | /** Check if character is valid within a key (lcalpha / DIGIT / "_" / "-" / "." / "*") */ |
| 472 | function isKeyChar(c: string): boolean { |
| 473 | return isLcalpha(c) || isDigit(c) || c === "_" || c === "-" || c === "." || |
| 474 | c === "*"; |
| 475 | } |
| 476 | |
| 477 | // Pre-computed lookup table for tchar (RFC 9110 token characters) |
| 478 | // tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." / |
no test coverage detected