MCPcopy Create free account
hub / github.com/SethGammon/Citadel / parseList

Function parseList

core/fleet/session.js:41–45  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

39 return String(status || 'pending').trim().toLowerCase() || 'pending';
40}
41
42function parseList(value) {
43 const raw = String(value || '').trim();
44 if (!raw || /^(-|none|n\/a)$/i.test(raw)) return [];
45 return raw.split(/[,;]+/).map((item) => item.trim()).filter(Boolean);
46}
47
48function parseDeps(value) {

Callers 2

parseDepsFunction · 0.85
parseWorkQueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected