MCPcopy Create free account
hub / github.com/alibaba/open-code-review / buildUrl

Function buildUrl

scripts/install.js:87–92  ·  view source on GitHub ↗
(pattern, vars)

Source from the content-addressed store, hash-verified

85}
86
87function buildUrl(pattern, vars) {
88 return pattern
89 .replace(/\{version\}/g, vars.version)
90 .replace(/\{os\}/g, vars.os)
91 .replace(/\{arch\}/g, vars.arch);
92}
93
94function download(url, maxRedirects = 10) {
95 if (!url.startsWith("https")) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected