MCPcopy Index your code
hub / github.com/Dimillian/CodexMonitor / splitCommandSegments

Function splitCommandSegments

src/utils/threadItems.explore.ts:115–121  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

113}
114
115function splitCommandSegments(command: string) {
116 return command
117 .split(/\s*(?:&&|;)\s*/g)
118 .map((segment) => trimAtPipe(segment))
119 .map((segment) => segment.trim())
120 .filter(Boolean);
121}
122
123function trimAtPipe(command: string) {
124 if (!command) {

Callers 1

Calls 1

trimAtPipeFunction · 0.85

Tested by

no test coverage detected