MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / resolvePrefix

Method resolvePrefix

tools/mcmanifest.js:3134–3140  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

3132 return manifest;
3133 }
3134 resolvePrefix(value) {
3135 const colon = value.indexOf(":");
3136 if (colon > 0) {
3137 value = "~." + value.slice(0, colon) + "/" + value.slice(colon + 1);
3138 }
3139 return value;
3140 }
3141 resolveSlash(value) {
3142 if (this.windows)
3143 value = value.replace(/\//g, "\\");

Callers 1

processMethod · 0.45

Calls 1

sliceMethod · 0.65

Tested by

no test coverage detected