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

Method resolveSlash

tools/mcpack.js:1235–1239  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1233 return value;
1234 }
1235 resolveSlash(value) {
1236 if (this.windows)
1237 value = value.replace(/\//g, "\\");
1238 return value;
1239 }
1240 resolveSource(sourceIn) {
1241 try {
1242 var source = ("string" == typeof sourceIn) ? sourceIn : sourceIn.source;

Callers 4

resolveVariableMethod · 0.45
processMethod · 0.45
filterCommonjsMethod · 0.45
filterPreloadMethod · 0.45

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected