MCPcopy Index your code
hub / github.com/labring/FastGPT / isIndexFile

Function isIndexFile

document/script/checkDocRefs.js:161–163  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

159}
160
161function isIndexFile(name) {
162 return /^index(\.en)?\.mdx?$/i.test(name);
163}
164
165function slugFromFile(name) {
166 return name.replace(/\.(en\.)?mdx?$/i, '');

Callers 1

collectExpectedSlugsFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected