Skip to content

Commit

Permalink
Fixed #1189: Support spaces in /*global ... */
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kovalyov <anton@kovalyov.net>
  • Loading branch information
lapo-luchini authored and valueof committed Aug 2, 2013
1 parent dcc1251 commit a17ae9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stable/jshint.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,8 @@ var JSHINT = (function () {
if (nt.type === "globals") {
body.forEach(function (g) {
g = g.split(":");
var key = g[0];
var val = g[1];
var key = (g[0] || "").trim();
var val = (g[1] || "").trim();

if (key.charAt(0) === "-") {
key = key.slice(1);
Expand Down

0 comments on commit a17ae9e

Please sign in to comment.