Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
85
function
normalizeRoutePath(p) {
86
return
p.replace(/\/+$/,
''
).replace(/\.(en\.)?(mdx|md)$/i,
''
);
87
}
88
89
function
extractRefs(content) {
90
// 去除 ``` 代码块和 ` 行内代码,避免误报
Callers
1
isValidRef
Function · 0.85
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected