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