read-package-json
Advanced tools
Comparing version 0.0.11 to 0.0.12
{ | ||
"name": "read-package-json", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", | ||
@@ -5,0 +5,0 @@ "description": "The thing npm uses to read package.json files with semantics and defaults and validation", |
@@ -217,3 +217,3 @@ // vim: set softtabstop=16 shiftwidth=16: | ||
d = d.trim().split('\n') | ||
for (var s = 0; d[s].trim().match(/^(#|$)/); s ++); | ||
for (var s = 0; d[s] && d[s].trim().match(/^(#|$)/); s ++); | ||
var l = d.length | ||
@@ -220,0 +220,0 @@ for (var e = s + 1; e < l && d[e].trim(); e ++); |
27497