MCPcopy
hub / github.com/codeaashu/claude-code / parseCellId

Function parseCellId

src/utils/notebook.ts:217–224  ·  view source on GitHub ↗
(cellId: string)

Source from the content-addressed store, hash-verified

215}
216
217export 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

Callers 3

validateInputFunction · 0.85
callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected