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

Method resolveSlash

tools/mcbundle.js:128–132  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

126 }
127 }
128 resolveSlash(value) {
129 if (this.windows)
130 value = value.replace(/\//g, "\\");
131 return value;
132 }
133 resolveVariable(value) {
134 value = value.replace(/\$\(([^\)]+)\)/g, (offset, value) => {
135 if (value in this.environment)

Callers 2

resolveVariableMethod · 0.45
runMethod · 0.45

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected