diff options
author | isaacs <i@izs.me> | 2011-03-30 07:10:38 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-03-30 09:05:00 +0400 |
commit | b4968fb12b551ae65aed035cb5c93fc3c7a2a51d (patch) | |
tree | 102df3364162756f806c39c4da801409881ee19d /lib | |
parent | db512541c85f8fec38479b50187c3b705d5705e6 (diff) |
Parse stableFamily properly
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/config-defs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/config-defs.js b/lib/utils/config-defs.js index 48d2f2a28..e11f62ccb 100644 --- a/lib/utils/config-defs.js +++ b/lib/utils/config-defs.js @@ -9,7 +9,7 @@ var path = require("path") , stableFamily = semver.parse(process.version) , os = require("os") -if (stableFamily && !(stableFamily[2] % 2)) stableFamily = null +if (stableFamily && (+stableFamily[2] % 2)) stableFamily = null else stableFamily = stableFamily[1] + "." + stableFamily[2] exports.defaults = |