MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / replaceAll

Function replaceAll

out/cli.cjs:77441–77443  ·  view source on GitHub ↗
(value, searchValue, replaceValue)

Source from the content-addressed store, hash-verified

77439 let value = pathParam;
77440 if (!options.skipUrlEncoding) {
77441 value = encodeURIComponent(pathParam);
77442 }
77443 routePath = routePath.replace(/\{\w+\}/, value);
77444 }
77445 return routePath;
77446}

Callers 1

buildBaseUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected