Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Simplifies split regex, the filter already catches empty args.

Joshua Appelmanc2b418e9db3a
diff --git a/bin/options.js b/bin/options.js
index b38ef5bf..5e90a70d 100644
--- a/bin/options.js
+++ b/bin/options.js
@@ -21,7 +21,7 @@ function getOptions() {
try {
var opts = fs.readFileSync(optsPath, 'utf8')
- .split(/\s+/)
+ .split(/\s/)
.filter(Boolean);
process.argv = process.argv