Skip to content

Commit

Permalink
Merge pull request #4 from silverwind/upper-limit
Browse files Browse the repository at this point in the history
add upper limit for the Windows 10 workaround
  • Loading branch information
sindresorhus committed Sep 11, 2015
2 parents 98a5355 + 478d645 commit d49e71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = function (release) {

// workaround for Windows 10 on node < 3.1.0
if (!release && process.platform === 'win32' &&
semver.satisfies(process.version, '>=0.12.0')) {
semver.satisfies(process.version, '>=0.12.0 <3.1.0')) {
try {
version = verRe.exec(String(require('child_process').execSync('ver.exe', {timeout: 2000})));
} catch (err) {}
Expand Down

0 comments on commit d49e71c

Please sign in to comment.