Skip to content

Commit 216d064

Browse files
committed
use canonical windows detection
1 parent de722ff commit 216d064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/cmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var minimist = require('minimist')
66
var path = require('path')
77

88
var STANDARD_CMD = path.join(require.resolve('standard'), '../../.bin/standard')
9-
if (/^win/.test(process.platform)) STANDARD_CMD += '.cmd'
9+
if (process.platform === 'win32') STANDARD_CMD += '.cmd'
1010

1111
var argv = minimist(process.argv.slice(2), {
1212
boolean: [

0 commit comments

Comments
 (0)