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

Function attr

apps/sim/lib/copilot/vfs/document-style.ts:60–63  ·  view source on GitHub ↗
(xml: string, name: string)

Source from the content-addressed store, hash-verified

58}
59
60function attr(xml: string, name: string): string {
61 const rx = new RegExp(`${name}="([^"]*)"`)
62 return rx.exec(xml)?.[1] ?? ''
63}
64
65function between(xml: string, open: string, close: string): string {
66 const start = xml.indexOf(open)

Callers 3

parseColorSlotFunction · 0.85
parseFontSchemeFunction · 0.85
parseDocxStylesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected