fix(server): early exit in doc parse (#11507)
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user