(value)
| 12 | } |
| 13 | |
| 14 | function parseSourceList(value) { |
| 15 | if (!value) return new Set(); |
| 16 | |
| 17 | return new Set( |
| 18 | String(value) |
| 19 | .split(",") |
| 20 | .map((item) => item.trim()) |
| 21 | .filter(Boolean) |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | function sourceMatchesList(source, sourceIds) { |
| 26 | return [source?.id, source?.type, source?.subType] |
no test coverage detected