[BUGFIX] Version compare chars only
This commit is contained in:
parent
c9dd968c92
commit
8da8154edd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user