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:
Kufat 2023-06-01 08:03:07 -04:00
parent ae9d312b2a
commit 7ac2a6fd77

View file

@ -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(