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