Skip to content

Commit

Permalink
Revert "benchmark: fix CLI arguments check in common.js"
Browse files Browse the repository at this point in the history
This reverts commit e34f8e1.

PR-URL: #12474
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
jasnell committed Apr 17, 2017
1 parent 70b51c8 commit 0227571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0227571

Please sign in to comment.