Fix error parsing complex bodies made on GH (#460)

[SKIP]

Caused by Line Endings
This commit is contained in:
IntegerLimit 2023-10-20 13:19:05 +11:00 committed by GitHub
parent 7db0a282dd
commit 7a6a147006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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, {