From 7abc5e7922ac3ec9b7fd00e659cf5ae32f733d75 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Fri, 18 Sep 2015 19:56:34 +0200 Subject: [PATCH] Fix own version check. --- src/extension.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extension.js b/src/extension.js index 832f72c..2ec91c9 100644 --- a/src/extension.js +++ b/src/extension.js @@ -124,13 +124,13 @@ let versionAtLeast = function(atleast, current) { let minor = currentArray[1]; let point = currentArray[2]; let atleastArray = atleast.split('.'); - if ((atleastArray[0] > major) || + if ((atleastArray[0] < major) || (atleastArray[0] == major && - atleastArray[1] > minor) || + atleastArray[1] < minor) || (atleastArray[0] == major && atleastArray[1] == minor) && (atleastArray[2] == undefined || - atleastArray[2] >= point)) + atleastArray[2] <= point)) return true; return false; }