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

Method unresolvePrefix

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

Source from the content-addressed store, hash-verified

3297 this.environment.SLASH_SIGNATURE = "/" + signature.join("/");
3298 }
3299 unresolvePrefix(value) {
3300 if (value.startsWith("~.")) {
3301 value = value.slice(2).replace("/", ":");
3302 }
3303 return value;
3304 }
3305}
3306

Callers 1

generateMethod · 0.80

Calls 2

replaceMethod · 0.80
sliceMethod · 0.65

Tested by

no test coverage detected