(meta, key)
| 556 | }); |
| 557 | |
| 558 | const extractYamlArray = (meta, key) => { |
| 559 | const regex = new RegExp(`${key}:\\s*\\[?([^\\]\\n]+)\\]?`); |
| 560 | const match = meta.match(regex); |
| 561 | if (!match) return []; |
| 562 | |
| 563 | return match[1] |
| 564 | .split(",") |
| 565 | .map((s) => s.trim().replace(/['"]/g, "")) |
| 566 | .filter(Boolean); |
| 567 | }; |
| 568 | |
| 569 | const getTest262Meta = (content) => { |
| 570 | const metaMatch = content.match(/\/\*---([\s\S]*?)---\*\//); |
no test coverage detected