MCPcopy Create free account
hub / github.com/Noumena-Network/code / cleanPath

Function cleanPath

scripts/generate_slash_command_appendix.mjs:265–267  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

263}
264
265function cleanPath(p) {
266 return path.relative(rootDir, p).replaceAll(path.sep, '/')
267}
268
269function parseSimpleStringArray(source, fieldName) {
270 const match = source.match(new RegExp(`${fieldName}:\\s*\\[([^\\]]*)\\]`, 'm'))

Calls

no outgoing calls

Tested by

no test coverage detected