MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / parseDestinationTypes

Function parseDestinationTypes

utils/sharex.ts:12–19  ·  view source on GitHub ↗
(destinationType?: string)

Source from the content-addressed store, hash-verified

10const RESPONSE_TEMPLATE_REGEX = /\$response\$|\{response\}/g;
11
12function parseDestinationTypes(destinationType?: string): string[] {
13 if (!destinationType) return [];
14
15 return destinationType
16 .split(",")
17 .map(type => type.trim())
18 .filter(Boolean);
19}
20
21function getNestedValue(data: unknown, path: string): unknown {
22 const normalizedPath = path.replace(/\[(\d+)\]/g, ".$1");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected