Permalink
Browse files

Strip out trailing commas from JSON files

  • Loading branch information...
1 parent 1996827 commit ab798a8d58aeff7e05f63e68d33d99c0b0a679c9 @kpdecker kpdecker committed Sep 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/external/json-minify.js
@@ -56,6 +56,6 @@
}
}
new_str[ns++] = rc;
- return new_str.join("");
+ return new_str.join("").replace(/\,([\]\}])/g, '$1');
};
})(typeof global !== 'undefined' ? global : this);

0 comments on commit ab798a8

Please sign in to comment.