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

Method resolveSlash

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

Source from the content-addressed store, hash-verified

3139 return value;
3140 }
3141 resolveSlash(value) {
3142 if (this.windows)
3143 value = value.replace(/\//g, "\\");
3144 return value;
3145 }
3146 resolveSource(sourceIn) {
3147 var source = ("string" == typeof sourceIn) ? sourceIn : sourceIn.source;
3148 var result = this.resolveVariable(source);

Callers 3

resolveVariableMethod · 0.95
processMethod · 0.45

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected