Skip to content

Commit 440f4d4

Browse files
jasnellevanlucas
authored andcommitted
Revert "benchmark: fix CLI arguments check in common.js"
This reverts commit e34f8e1. PR-URL: #12474 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent b7aeed7 commit 440f4d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/common.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ Benchmark.prototype._parseArgs = function(argv, configs) {
4242
const extraOptions = {};
4343
// Parse configuration arguments
4444
for (const arg of argv) {
45-
const match = arg.match(/^(.+?)=([\s\S]+)$/);
46-
if (!match) {
45+
const match = arg.match(/^(.+?)=([\s\S]*)$/);
46+
if (!match || !match[1]) {
4747
console.error('bad argument: ' + arg);
4848
process.exit(1);
4949
}

0 commit comments

Comments
 (0)