MCPcopy Create free account
hub / github.com/ShipSecAI/studio / addValue

Function addValue

worker/src/components/security/subfinder.ts:336–352  ·  view source on GitHub ↗
(value: string | string[] | undefined)

Source from the content-addressed store, hash-verified

334 // Collect domains from both inputs and legacy parameter
335 const values = new Set<string>();
336 const addValue = (value: string | string[] | undefined) => {
337 if (Array.isArray(value)) {
338 value.forEach((item) => {
339 const trimmed = item.trim();
340 if (trimmed.length > 0) {
341 values.add(trimmed);
342 }
343 });
344 return;
345 }
346 if (typeof value === 'string') {
347 const trimmed = value.trim();
348 if (trimmed.length > 0) {
349 values.add(trimmed);
350 }
351 }
352 };
353
354 addValue(inputs.domains);
355 addValue(legacyDomain);

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected