Skip to content

Commit 55cc4c8

Browse files
committed
build
1 parent ccdb807 commit 55cc4c8

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

dist/index.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4603,8 +4603,8 @@ result = body.split('###').filter(Boolean).map(line => {
46034603
const line = item.trim();
46044604
if (line.startsWith('- [')) {
46054605
return line.split(/\r?\n/).map(check => {
4606-
const field = check.replace(/- \[[X\s]\]/, '');
4607-
return [`${field}`, check.startsWith('- [X]')]
4606+
const field = check.replace(/- \[[X\s]\]\s+/i, '');
4607+
return [`${field}`, check.toUpperCase().startsWith('- [X] ')]
46084608
})
46094609
}
46104610

@@ -4618,8 +4618,12 @@ result = body.split('###').filter(Boolean).map(line => {
46184618
}
46194619

46204620
return [...prev, curr];
4621-
}, []).map(([key, value]) => {
4622-
return [toKey(key), toValue(value)]
4621+
}, []).map(([key, ...lines]) => {
4622+
4623+
const checkListValue = lines.find(line => Array.isArray(line));
4624+
const value = checkListValue ? toValue(checkListValue) : toValue(...lines)
4625+
4626+
return [toKey(key), value];
46234627
})
46244628

46254629
result.forEach(([key, value]) => {

0 commit comments

Comments
 (0)