grunt-git icon indicating copy to clipboard operation
grunt-git copied to clipboard

Gitlog fails when the subject or body includes quotation marks

Open am opened this issue 9 years ago • 6 comments

When running the task it fails with the following error:

Warning: Log failed to match exepected pattern:
{
  "hash": "60dc76bd83bfaf1a9380683369398863847d51e6",
  "author": {
    "name": "foo",
    "email": "[email protected]"
  },
  "date": "Tue, 10 Feb 2015 10:12:42 +0100",
  "subject": "Merge pull request #705 from io/joe/123",
  "body": "Fixes boo "word" bar"
}

Is there any way to escape the values before parsing the json?

am avatar Feb 13 '15 17:02 am