X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=_common%2Fgithub.js;h=442b16b0b82534fc7aea8399e3718d388f8641c5;hb=969df21e47c4d8312925638739a23eef0c349e1c;hp=7b62ea3a04cc467b97de9ca50087fec201243c3b;hpb=fa2dcece4ca1b421fc427117de11778c60804538;p=webi-installers%2F.git diff --git a/_common/github.js b/_common/github.js index 7b62ea3..442b16b 100644 --- a/_common/github.js +++ b/_common/github.js @@ -38,7 +38,7 @@ function getAllReleases( all.releases.push({ name: name, version: release['tag_name'], // TODO tags aren't always semver / sensical - lts: /\b(lts)\b/.test(release['tag_name']), + lts: /(\b|_)(lts)(\b|_)/.test(release['tag_name']), channel: !release['prerelease'] ? 'stable' : 'beta', date: (release['published_at'] || '').replace(/T.*/, ''), os: '', // will be guessed by download filename @@ -58,7 +58,7 @@ module.exports = getAllReleases; if (module === require.main) { getAllReleases(require('@root/request'), 'BurntSushi', 'ripgrep').then( function (all) { - console.log(JSON.stringify(all, null, 2)); + console.info(JSON.stringify(all, null, 2)); } ); }