mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 13:22:11 +01:00
Replace quotes at the start and end.
This commit is contained in:
parent
6f37940dd3
commit
2ffae12ebb
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ var GitStats = require("../lib");
|
||||||
|
|
||||||
switch (process.argv[2]) {
|
switch (process.argv[2]) {
|
||||||
case "--record":
|
case "--record":
|
||||||
var data = process.argv[3];
|
var data = process.argv[3].replace(/^\"|\"$/g, "");
|
||||||
console.log(data);
|
console.log(data);
|
||||||
try {
|
try {
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
|
|
Loading…
Reference in a new issue