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
@ -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 New Issue
Block a user