MCPcopy Create free account
hub / github.com/NanmiCoder/cc-haha / extractPythonVersion

Function extractPythonVersion

src/server/api/computer-use-python.ts:67–70  ·  view source on GitHub ↗
(output: string)

Source from the content-addressed store, hash-verified

65}
66
67function extractPythonVersion(output: string): string | null {
68 const match = output.match(/Python\s+([0-9][^\s]*)/i)
69 return match?.[1] ?? null
70}
71
72export function isPythonVersionAtLeast(
73 version: string | null,

Callers 1

detectPythonRuntimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected