MCPcopy Index your code
hub / github.com/callstack/agent-device / readBareReplayToken

Function readBareReplayToken

src/replay/script.ts:442–448  ·  view source on GitHub ↗
(line: string, cursor: number)

Source from the content-addressed store, hash-verified

440}
441
442function readBareReplayToken(line: string, cursor: number): { value: string; nextCursor: number } {
443 let end = cursor;
444 while (end < line.length && !/\s/.test(line.charAt(end))) {
445 end += 1;
446 }
447 return { value: line.slice(cursor, end), nextCursor: end };
448}
449
450export function writeReplayScript(
451 filePath: string,

Callers 1

tokenizeReplayLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected