MCPcopy Create free account
hub / github.com/EndBug/version-check / matchVersion

Function matchVersion

src/main.ts:417–419  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

415}
416
417function matchVersion(str: string): string {
418 return (str.match(semverReGlobal) || ([] as string[]))[0]
419}
420
421function output(name: outputKey, value?: string | boolean) {
422 outputs[name] = value

Callers 1

parseVersionLineFunction · 0.70

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected