mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 00:03:23 +02:00
Normalize line endings when splitting file chunks
This commit is contained in:
@@ -378,7 +378,7 @@ async function tailFile(filePath: string, numLines: number): Promise<string> {
|
||||
const chunkText = readData + remainingText;
|
||||
|
||||
// Split by newlines and count
|
||||
const chunkLines = chunkText.split('\n');
|
||||
const chunkLines = normalizeLineEndings(chunkText).split('\n');
|
||||
|
||||
// If this isn't the end of the file, the first line is likely incomplete
|
||||
// Save it to prepend to the next chunk
|
||||
|
||||
Reference in New Issue
Block a user