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

Function normalizeRoutePath

document/script/checkDocRefs.js:85–87  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

83}
84
85function normalizeRoutePath(p) {
86 return p.replace(/\/+$/, '').replace(/\.(en\.)?(mdx|md)$/i, '');
87}
88
89function extractRefs(content) {
90 // 去除 ``` 代码块和 ` 行内代码,避免误报

Callers 1

isValidRefFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected