nHigashiWeseek 1 yıl önce
ebeveyn
işleme
31755c9c3e

+ 1 - 1
packages/markdown-splitter/src/services/markdown-token-splitter.ts

@@ -11,7 +11,7 @@ function groupMarkdownFragments(
 
 
   const prefixes = markdownFragments.map(({ label }) => {
   const prefixes = markdownFragments.map(({ label }) => {
     if (label === 'frontmatter') return 'frontmatter';
     if (label === 'frontmatter') return 'frontmatter';
-    const match = label.match(/^\d+(?:-\d+)*/);
+    const match = label.match(/^\d+(?:-\d+)*/)!; // eslint-disable-line @typescript-eslint/no-non-null-assertion
     return match[0];
     return match[0];
   });
   });