utils/utils.js
function (version, newVersion, newCodeName, versionOnly = false) {
  let matches = [`lts/${newCodeName}`, newCodeName, newVersion] // eslint-disable-line
  const tags = ['node', 'stable', 'lts/\\*']
  if (!versionOnly) {
    matches = matches.concat(tags)
  }
  const overallResult = !!matches.find((match) => {
    // first regex matches in array form ('- 10'), second regex matches the inline form ('10')
    return !!(version.match(RegExp(`([^.])(${match})`, 'i')) || version.match(RegExp(`^${match}`, 'i')))
  })
  return overallResult
}
function (version, newVersion, newCodeName, versionOnly = false) {
  let matches = [`lts/${newCodeName}`, newCodeName, newVersion] // eslint-disable-line
  const tags = ['node', 'stable', 'lts/\\*']
  if (!versionOnly) {
    matches = matches.concat(tags)
  }
  const overallResult = !!matches.find((match) => {
    // first regex matches in array form ('- 10'), second regex matches the inline form ('10')
    return !!(version.match(RegExp(`([^.])(${match})`, 'i')) || version.match(RegExp(`^${match}`, 'i')))
  })
  return overallResult
}
version is a string: 'v8.10', '- "10"', 'Dubnium', "- 'lts/*'" etc returns a boolean versionOnly: true will _not_ match placeholder strings for current versions, such as `stable`