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

Function parseVersionLine

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

Source from the content-addressed store, hash-verified

411}
412
413function parseVersionLine(str: string) {
414 return (str.split('"') || []).map((s) => matchVersion(s)).find((e) => !!e)
415}
416
417function matchVersion(str: string): string {
418 return (str.match(semverReGlobal) || ([] as string[]))[0]

Callers 1

checkDiffFunction · 0.70

Calls 1

matchVersionFunction · 0.70

Tested by

no test coverage detected