Skip to content

Commit 31c646d

Browse files
committed
trim body before parsing
1 parent 55cc4c8 commit 31c646d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function toValue(val) {
4949
return value;
5050
}
5151

52-
result = body.split('###').filter(Boolean).map(line => {
52+
result = body.trim().split('###').filter(Boolean).map(line => {
5353
return line.split(/\r?\n\r?\n/).filter(Boolean).map(item => {
5454
const line = item.trim();
5555
if (line.startsWith('- [')) {

0 commit comments

Comments
 (0)