[BUGFIX] Version compare chars only

This commit is contained in:
Xaver Maierhofer 2017-12-27 20:17:00 +01:00 committed by Geno
parent c9dd968c92
commit 8da8154edd
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ define(function () {
rb = parseB.exec(b);
}
if (!ra && rb) { // rb doesn't get exec-ed when ra == null
return (parseB.exec(b)[1].split('')[0] === '~') ? 1 : -1;
return (rb.length > 0 && rb[1].split('')[0] === '~') ? 1 : -1;
} else if (ra && !rb) {
return (ra[1].split('')[0] === '~') ? -1 : 1;
}