(cellId: string)
| 215 | } |
| 216 | |
| 217 | export function parseCellId(cellId: string): number | undefined { |
| 218 | const match = cellId.match(/^cell-(\d+)$/) |
| 219 | if (match && match[1]) { |
| 220 | const index = parseInt(match[1], 10) |
| 221 | return isNaN(index) ? undefined : index |
| 222 | } |
| 223 | return undefined |
| 224 | } |
| 225 |
no outgoing calls
no test coverage detected