mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
fix reference position issue
This commit is contained in:
@@ -322,7 +322,7 @@ function buildFinalResult(
|
||||
|
||||
// Look ahead to check if there's a list item coming next
|
||||
const textAfterInsert = modifiedAnswer.substring(insertPosition);
|
||||
const nextListItemMatch = textAfterInsert.match(/^\s*\n\s*\*/);
|
||||
const nextListItemMatch = textAfterInsert.match(/^\s*\n\s*\*\s+/);
|
||||
|
||||
// If we're at a position where the next content is a list item,
|
||||
// we need to adjust WHERE we place the footnote
|
||||
|
||||
Reference in New Issue
Block a user