(source, fieldName)
| 267 | } |
| 268 | |
| 269 | function parseSimpleStringArray(source, fieldName) { |
| 270 | const match = source.match(new RegExp(`${fieldName}:\\s*\\[([^\\]]*)\\]`, 'm')) |
| 271 | if (!match) return [] |
| 272 | return [...match[1].matchAll(/'([^']+)'/g)].map(m => m[1]) |
| 273 | } |
| 274 | |
| 275 | function parseMetadata(source) { |
| 276 | const firstMatch = pattern => source.match(pattern)?.[1] ?? '' |
no outgoing calls
no test coverage detected