nix non-archive caddy and fix \b regexp detection
[webi-installers/.git] / _common / github.js
index 7b62ea3a04cc467b97de9ca50087fec201243c3b..ef3a64fa5222a423d1ebd998cccdaae1fb9e4fe5 100644 (file)
@@ -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