From cc3a9fde2d4c6846911759fc98fb3d58c8d2b889 Mon Sep 17 00:00:00 2001 From: David Majda Date: Sat, 14 Dec 2013 21:13:01 +0100 Subject: [PATCH] Fix JSHint error in benchmark/run Fixes the following JSHint error: benchmark/run: line 106, col 10, Wrap the /regexp/ literal in parens to disambiguate the slash operator. --- benchmark/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/run b/benchmark/run index 1e9081b..e387916 100755 --- a/benchmark/run +++ b/benchmark/run @@ -103,7 +103,7 @@ function abort(message) { var args = process.argv.slice(2); // Trim "node" and the script path. function isOption(arg) { - return /^-/.test(arg); + return (/^-/).test(arg); } function nextArg() {