MCPcopy Index your code
hub / github.com/coder/mux / looksLikePath

Function looksLikePath

src/node/services/editorService.ts:42–50  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

40}
41
42function looksLikePath(command: string): boolean {
43 return (
44 command.startsWith("./") ||
45 command.startsWith("../") ||
46 command.includes("/") ||
47 command.includes("\\") ||
48 /^[A-Za-z]:/.test(command)
49 );
50}
51
52export interface EditorConfig {
53 editor: string;

Callers 1

isCommandAvailableMethod · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected