Replace quotes at the start and end.

This commit is contained in:
Ionică Bizău 2015-01-26 10:25:37 +02:00
parent 6f37940dd3
commit 2ffae12ebb

View file

@ -4,7 +4,7 @@ var GitStats = require("../lib");
switch (process.argv[2]) {
case "--record":
var data = process.argv[3];
var data = process.argv[3].replace(/^\"|\"$/g, "");
console.log(data);
try {
data = JSON.parse(data);