MCPcopy
hub / github.com/vitejs/vite / findPreviousStableVersion

Function findPreviousStableVersion

scripts/mergeChangelog.ts:97–108  ·  view source on GitHub ↗
(lines: string[], startIdx: number)

Source from the content-addressed store, hash-verified

95}
96
97function findPreviousStableVersion(lines: string[], startIdx: number): string {
98 for (let i = startIdx; i < lines.length; i++) {
99 const match = lines[i].match(/^## (?:<small>)?\[([^\]]+)\]/)
100 if (match) {
101 const v = match[1]
102 if (!/alpha|beta|rc/.test(v)) {
103 return v
104 }
105 }
106 }
107 return ''
108}
109
110function updateHeaderCompareLink(
111 headerLine: string,

Callers 1

mergeChangelog.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected