web: Fixed bug with broken comparisons in Version#is_compatible_with

This commit is contained in:
Nathan Adams 2020-05-18 00:40:41 +02:00
parent bd6ed0b234
commit f3690db1bf
1 changed files with 2 additions and 0 deletions

View File

@ -87,11 +87,13 @@ exports.Version = class Version {
(this.major !== 0 && this.major === fver.major) ||
(this.major === 0 &&
fver.major === 0 &&
this.minor !== 0 &&
this.minor === fver.minor) ||
(this.major === 0 &&
fver.major === 0 &&
this.minor === 0 &&
fver.minor === 0 &&
this.patch !== 0 &&
this.patch === fver.patch)
);
}