(name: string)
| 82 | } |
| 83 | |
| 84 | export function validateWorksetName(name: string): string { |
| 85 | if (!isKebabId(name)) { |
| 86 | throw new StoreError( |
| 87 | `Workset name '${name}' ${KEBAB_ID_DESCRIPTION}.`, |
| 88 | 'invalid_workset_name', |
| 89 | { |
| 90 | target: 'workset.name', |
| 91 | fix: KEBAB_ID_FIX, |
| 92 | } |
| 93 | ); |
| 94 | } |
| 95 | |
| 96 | return name; |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Returns a problem description for a member list, or null when valid. |
no test coverage detected