Browse files

Strip spaces for JSHint options when used with JSC wrapper.

Fixes GH-398.
  • Loading branch information...
1 parent dc73622 commit b19ead331c5fe5accb97f98fe89d058ec66e75fd @danvk danvk committed with valueof Jan 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 env/jsc.js
View
2 env/jsc.js
@@ -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;
}

0 comments on commit b19ead3

Please sign in to comment.