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:
James M Snell authored and Evan Lucas committed 2017-05-02 12:46:11 -05:00
1 parent b7aeed7a7e
commit 440f4d4eef
1 file changed
+2 -2
+2 -2
View File
@@ -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);
}