Fix obvious bug.

This commit is contained in:
Joshua Bemenderfer
2023-02-05 08:58:34 -05:00
parent 657c95a4c1
commit ea6eb7bd94
6 changed files with 43 additions and 116 deletions

View File

@@ -110,10 +110,10 @@ async function main() {
if (match('name')) author.name = tail().trim()
else if (match('email')) author.email = tail().trim()
else {
if (!author['#text']) author['#text'] = [level(), line(l + 1)]
if (!author['#text']) author['#text'] = [line(l + 1)]
// Loop through all remaining lines to avoid re-matching name or email above.
while(await next(l)) {
author['#text'].push(level(), line(l + 1))
author['#text'].push(line(l + 1))
}
}
}