(value: string | undefined)
| 18 | } |
| 19 | |
| 20 | function parseStringList(value: string | undefined): string[] { |
| 21 | if (!value) return []; |
| 22 | return value |
| 23 | .split(",") |
| 24 | .map((entry) => entry.trim()) |
| 25 | .filter((entry) => entry.length > 0); |
| 26 | } |
| 27 | |
| 28 | function parseQuestionTypes(value: string | undefined): LongMemEvalQuestionType[] { |
| 29 | const parsed = parseStringList(value); |
no outgoing calls
no test coverage detected