Fix error parsing complex bodies made on GH (#460)
[SKIP] Caused by Line Endings
This commit is contained in:
parent
7db0a282dd
commit
7a6a147006
@ -183,7 +183,7 @@ async function parse<T>(
|
||||
// Remove everything before first delimiter in body
|
||||
const list = commitBody.split(delimiter);
|
||||
list.shift();
|
||||
const body = `${delimiter} ${list.join(delimiter)}`;
|
||||
const body = `${delimiter} ${list.join(delimiter)}`.split("\r\n").join("\n");
|
||||
|
||||
// Parse
|
||||
const parseResult = matter(body, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user