(label: string)
| 88 | } |
| 89 | |
| 90 | function parseEntry(label: string) { |
| 91 | const marker = label.startsWith("@") ? label.indexOf("@", 1) : label.indexOf("@") |
| 92 | if (marker <= 0) { |
| 93 | return null |
| 94 | } |
| 95 | const name = label.slice(0, marker).replace(/\+/g, "/") |
| 96 | const version = label.slice(marker + 1) |
| 97 | if (!name || !version) { |
| 98 | return null |
| 99 | } |
| 100 | return { name, version } |
| 101 | } |
no outgoing calls
no test coverage detected