Skip to content

Commit

Permalink
"json" command "-f" bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal authored and Tom Robinson committed Sep 4, 2009
1 parent 52e69fa commit d147c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/narwhal/json.js
Expand Up @@ -163,7 +163,7 @@ parser.option('-f', '-.', '--array-fields', 'names', 'fields')
if (field == "_")
return _;
if ('' + (field >>> 0) === field)
return _[field >>> 0 - 1];
return _[(field >>> 0) - 1];
return _[field];
});
});
Expand Down

0 comments on commit d147c16

Please sign in to comment.