chore: fix supported versions automation (#31602)

This commit is contained in:
Keeley Hammond 2021-10-26 22:26:17 -07:00 committed by GitHub
parent 771a8f70da
commit 0f0ed5921d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ until the maintainers feel the maintenance burden is too high to continue doing
* 17.x.y
* 16.x.y
* 15.x.y
* 13
* 14.x.y
### End-of-life

View file

@ -174,7 +174,7 @@ async function updateWinRC (components) {
// updates support.md file with new semver values (stable only)
async function updateSupported (version, filePath) {
const v = parseInt(version);
const newVersions = [`* ${v}.x.y`, `* ${v - 1}.x.y`, `* ${v - 2}.x.y`, `* ${v - 3}`];
const newVersions = [`* ${v}.x.y`, `* ${v - 1}.x.y`, `* ${v - 2}.x.y`, `* ${v - 3}.x.y`];
const contents = await readFile(filePath, 'utf8');
const previousVersions = contents.split('\n').filter((elem) => {
return (/[^\n]*\.x\.y[^\n]*/).test(elem);