@douyinfe/semi-mcp 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -229,7 +229,7 @@ async function getComponentDocuments(componentName, version) {
|
|
|
229
229
|
const componentFiles = contentFiles.filter((file)=>{
|
|
230
230
|
if ('file' !== file.type) return false;
|
|
231
231
|
const path = file.path.toLowerCase();
|
|
232
|
-
const pathPattern = new RegExp(`/content/[^/]+/${componentNameLower}/
|
|
232
|
+
const pathPattern = new RegExp(`/content/[^/]+/${componentNameLower}/index\\.md$`);
|
|
233
233
|
return pathPattern.test(path);
|
|
234
234
|
});
|
|
235
235
|
if (0 === componentFiles.length) return null;
|
package/package.json
CHANGED