fix(server): early exit in doc parse (#11507)

This commit is contained in:
darkskygit
2025-04-07 09:30:06 +00:00
parent af48df230d
commit 3792464fa0

View File

@@ -132,8 +132,9 @@ export function parsePageDoc(
} else if (summaryLenNeeded > 0) { } else if (summaryLenNeeded > 0) {
content.summary += text.toString(); content.summary += text.toString();
summaryLenNeeded -= text.length; summaryLenNeeded -= text.length;
} else {
break;
} }
break;
} }
} }
} }