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
|
// Remove everything before first delimiter in body
|
||||||
const list = commitBody.split(delimiter);
|
const list = commitBody.split(delimiter);
|
||||||
list.shift();
|
list.shift();
|
||||||
const body = `${delimiter} ${list.join(delimiter)}`;
|
const body = `${delimiter} ${list.join(delimiter)}`.split("\r\n").join("\n");
|
||||||
|
|
||||||
// Parse
|
// Parse
|
||||||
const parseResult = matter(body, {
|
const parseResult = matter(body, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user