(query: URLSearchParams, name: string)
| 185 | export const MAX_QUERY_LENGTH = 2_000; |
| 186 | |
| 187 | export function textParam(query: URLSearchParams, name: string): string { |
| 188 | const raw = requiredParam(query, name); |
| 189 | return boundLength(raw, name); |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * Text that must be PRESENT but may be empty — a search box the user has |
no test coverage detected