nHigashiWeseek 1 سال پیش
والد
کامیت
31755c9c3e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/markdown-splitter/src/services/markdown-token-splitter.ts

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

@@ -11,7 +11,7 @@ function groupMarkdownFragments(
 
   const prefixes = markdownFragments.map(({ label }) => {
     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];
   });