MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / parseCellId

Function parseCellId

source code/utils/notebook.ts:219–226  ·  view source on GitHub ↗
(cellId: string)

Source from the content-addressed store, hash-verified

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

Callers 3

validateInputFunction · 0.85
callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected