We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7aeed7 commit 440f4d4Copy full SHA for 440f4d4
benchmark/common.js
@@ -42,8 +42,8 @@ Benchmark.prototype._parseArgs = function(argv, configs) {
42
const extraOptions = {};
43
// Parse configuration arguments
44
for (const arg of argv) {
45
- const match = arg.match(/^(.+?)=([\s\S]+)$/);
46
- if (!match) {
+ const match = arg.match(/^(.+?)=([\s\S]*)$/);
+ if (!match || !match[1]) {
47
console.error('bad argument: ' + arg);
48
process.exit(1);
49
}
0 commit comments