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

Function buildUrl

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

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected