Fix own version check.

master
Jens Lody 9 years ago
parent 318c0efc10
commit 7abc5e7922
  1. 6
      src/extension.js

@ -124,13 +124,13 @@ let versionAtLeast = function(atleast, current) {
let minor = currentArray[1]; let minor = currentArray[1];
let point = currentArray[2]; let point = currentArray[2];
let atleastArray = atleast.split('.'); let atleastArray = atleast.split('.');
if ((atleastArray[0] > major) || if ((atleastArray[0] < major) ||
(atleastArray[0] == major && (atleastArray[0] == major &&
atleastArray[1] > minor) || atleastArray[1] < minor) ||
(atleastArray[0] == major && (atleastArray[0] == major &&
atleastArray[1] == minor) && atleastArray[1] == minor) &&
(atleastArray[2] == undefined || (atleastArray[2] == undefined ||
atleastArray[2] >= point)) atleastArray[2] <= point))
return true; return true;
return false; return false;
} }

Loading…
Cancel
Save