(value: string)
| 5 | const NBSP_PATTERN = /[\u00A0\u2007\u202F]/g; |
| 6 | |
| 7 | function stripWrappingQuotes(value: string): string { |
| 8 | if ( |
| 9 | (value.startsWith("\"") && value.endsWith("\"")) || |
| 10 | (value.startsWith("'") && value.endsWith("'")) |
| 11 | ) { |
| 12 | return value.slice(1, -1); |
| 13 | } |
| 14 | return value; |
| 15 | } |
| 16 | |
| 17 | export function normalizeCodexArgsInput(value: string | null | undefined): string | null { |
| 18 | const raw = (value ?? "").trim(); |
no outgoing calls
no test coverage detected