MCPcopy Create free account
hub / github.com/backnotprop/plannotator / trimCommandPath

Function trimCommandPath

packages/ai/providers/command-path.ts:15–17  ·  view source on GitHub ↗
(commandPath: string)

Source from the content-addressed store, hash-verified

13const WINDOWS_SHELL_EXTENSIONS = new Set([".cmd", ".bat"]);
14
15function trimCommandPath(commandPath: string): string {
16 return commandPath.trim();
17}
18
19function getKnownWindowsExtension(commandPath: string): string | null {
20 const match = trimCommandPath(commandPath).match(/\.(cmd|exe|bat|com)$/i);

Callers 2

getKnownWindowsExtensionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected