mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
Revert "benchmark: fix CLI arguments check in common.js"
This reverts commit e34f8e1444.
PR-URL: https://github.com/nodejs/node/pull/12474
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
70b51c8cc3
commit
0227571c17
1 file changed
+2
-2
+2
-2
@@ -42,8 +42,8 @@ Benchmark.prototype._parseArgs = function(argv, configs) {
|
||||
const extraOptions = {};
|
||||
// Parse configuration arguments
|
||||
for (const arg of argv) {
|
||||
const match = arg.match(/^(.+?)=([\s\S]+)$/);
|
||||
if (!match) {
|
||||
const match = arg.match(/^(.+?)=([\s\S]*)$/);
|
||||
if (!match || !match[1]) {
|
||||
console.error('bad argument: ' + arg);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user