MCPcopy
hub / github.com/codeaashu/claude-code / parseAttrs

Function parseAttrs

src/utils/claudeCodeHints.ts:122–128  ·  view source on GitHub ↗
(tagBody: string)

Source from the content-addressed store, hash-verified

120}
121
122function parseAttrs(tagBody: string): Record<string, string> {
123 const attrs: Record<string, string> = {}
124 for (const m of tagBody.matchAll(ATTR_RE)) {
125 attrs[m[1]!] = m[2] ?? m[3] ?? ''
126 }
127 return attrs
128}
129
130function firstCommandToken(command: string): string {
131 const trimmed = command.trim()

Callers 1

extractClaudeCodeHintsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected