MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / imageRefStartingAt

Method imageRefStartingAt

src/utils/Cursor.ts:305–308  ·  view source on GitHub ↗
(offset: number)

Source from the content-addressed store, hash-verified

303 }
304
305 imageRefStartingAt(offset: number): { start: number; end: number } | null {
306 const m = this.text.slice(offset).match(/^\[Image #\d+\]/)
307 return m ? { start: offset, end: offset + m[0].length } : null
308 }
309
310 /**
311 * If offset lands strictly inside an [Image #N] chip, snap it to the given

Callers 2

rightMethod · 0.95
deleteTokenBeforeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected