Function
findPreviousStableVersion
(lines: string[], startIdx: number)
Source from the content-addressed store, hash-verified
| 95 | } |
| 96 | |
| 97 | function 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 | |
| 110 | function updateHeaderCompareLink( |
| 111 | headerLine: string, |
Tested by
no test coverage detected