Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adcontextprotocol/adcp
/ formatTrail
Function
formatTrail
scripts/lint-error-codes.cjs:113–115 ·
view source on GitHub ↗
(trail)
Source
from the content-addressed store, hash-verified
111
}
112
113
function
formatTrail(trail) {
114
return
trail.map(seg => (typeof seg ===
'number'
? `[${seg}]` : `.${seg}`)).join(
''
).replace(/^\./,
''
);
115
}
116
117
function
main() {
118
const
enumData = loadEnum();
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected