mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 12:03:11 +00:00
Fix semver for prerelease versions
Noticed this breakage while trying to install a plugin on 4.4.1-rc2. ``` > semver.default.satisfies("4.4.1-rc2", ">=4.3.0") false > semver.default.satisfies("4.4.1-rc2", ">=4.3.0", {includePrerelease: true}) true ```
This commit is contained in:
parent
ae9d312b2a
commit
7ac2a6fd77
1 changed files with 3 additions and 1 deletions
|
@ -74,7 +74,9 @@ program
|
|||
|
||||
if (
|
||||
json.thelounge.supports &&
|
||||
!semver.satisfies(Helper.getVersionNumber(), json.thelounge.supports)
|
||||
!semver.satisfies(Helper.getVersionNumber(), json.thelounge.supports, {
|
||||
includePrerelease: true,
|
||||
})
|
||||
) {
|
||||
log.error(
|
||||
`${colors.red(
|
||||
|
|
Loading…
Reference in a new issue