nHigashiWeseek пре 1 година
родитељ
комит
5b300ab229
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      packages/markdown-splitter/src/services/markdown-splitter.ts

+ 3 - 3
packages/markdown-splitter/src/services/markdown-splitter.ts

@@ -19,9 +19,9 @@ export type Chunk = {
  * @param label - The label for the content chunk.
  */
 function addContentChunk(chunks: Chunk[], contentBuffer: string[], label: string) {
-  const contentText = contentBuffer.join('\n\n').trimEnd();
-  if (contentText !== '') {
-    chunks.push({ label, text: contentText });
+  const text = contentBuffer.join('\n\n').trimEnd();
+  if (text !== '') {
+    chunks.push({ label, text });
   }
   contentBuffer.length = 0; // Clear the contentBuffer array
 }