MCPcopy
hub / github.com/webpack/webpack / _resolveEscapeSequences

Function _resolveEscapeSequences

lib/DotenvPlugin.js:86–88  ·  view source on GitHub ↗

* Resolve escape sequences * ported from https://github.com/motdotla/dotenv-expand * @param {string} value value to resolve * @returns {string} resolved value

(value)

Source from the content-addressed store, hash-verified

84 * @returns {string} resolved value
85 */
86function _resolveEscapeSequences(value) {
87 return value.replace(/\\\$/g, "$");
88}
89
90/**
91 * Expand environment variable value

Callers 1

expandFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected