| 274 | |
| 275 | function parseMetadata(source) { |
| 276 | const firstMatch = pattern => source.match(pattern)?.[1] ?? '' |
| 277 | const name = firstMatch(/name:\s*'([^']+)'/) |
| 278 | const type = firstMatch(/type:\s*'([^']+)'/) |
| 279 | const description = firstMatch(/description:\s*`([^`]+)`/) || firstMatch(/description:\s*'([^']+)'/) |
no outgoing calls
no test coverage detected