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

Function slugFromFile

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

Source from the content-addressed store, hash-verified

163}
164
165function slugFromFile(name) {
166 return name.replace(/\.(en\.)?mdx?$/i, '');
167}
168
169function dirHasMeta(dir) {
170 return fileExists(path.join(dir, 'meta.json')) || fileExists(path.join(dir, 'meta.en.json'));

Callers 1

collectExpectedSlugsFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected