Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Strip spaces for JSHint options when used with JSC wrapper.

Fixes GH-398.
  • Loading branch information...
commit b19ead331c5fe5accb97f98fe89d058ec66e75fd 1 parent dc73622
Dan Vanderkam authored valueof committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  env/jsc.js
2  env/jsc.js
View
@@ -29,7 +29,7 @@ if (typeof(JSHINT) === 'undefined') {
arg = arg.split(',');
for (var i = 0, ii = arg.length; i < ii; i++) {
item = arg[i].split(':');
- opts[item[0]] = eval(item[1]);
+ opts[item[0].replace(/(^\s*)|(\s*$)/g, '')] = eval(item[1]);
}
return opts;
}
Please sign in to comment.
Something went wrong with that request. Please try again.