MCPcopy Create free account
hub / github.com/Noumena-Network/code / parseMatchCounter

Function parseMatchCounter

src/testing/replContractHarness.ts:37–46  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

35}
36
37export function parseMatchCounter(text: string): MatchCounter | null {
38 const match = text.match(/\b(\d+)\/(\d+)\b/)
39 if (!match) {
40 return null
41 }
42 return {
43 current: Number.parseInt(match[1]!, 10),
44 total: Number.parseInt(match[2]!, 10),
45 }
46}
47
48export function expectPromptFooterModules(
49 text: string,

Calls

no outgoing calls

Tested by

no test coverage detected