mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
fix reference position issue
This commit is contained in:
parent
dc9b530fb5
commit
97fc42268e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user