MCPcopy Index your code
hub / github.com/simstudioai/sim / between

Function between

apps/sim/lib/copilot/vfs/document-style.ts:65–71  ·  view source on GitHub ↗
(xml: string, open: string, close: string)

Source from the content-addressed store, hash-verified

63}
64
65function between(xml: string, open: string, close: string): string {
66 const start = xml.indexOf(open)
67 if (start < 0) return ''
68 const end = xml.indexOf(close, start + open.length)
69 if (end < 0) return ''
70 return xml.slice(start + open.length, end)
71}
72
73function parseColorSlot(xml: string, slot: string): string {
74 const inner = between(xml, `<a:${slot}>`, `</a:${slot}>`)

Callers 5

parseColorSlotFunction · 0.85
parseFontSchemeFunction · 0.85
parseDocxStylesFunction · 0.85
parsePptxPresentationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected