We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de7d7dc commit 9af098fCopy full SHA for 9af098f
lib/env-replace.js
@@ -1,6 +1,6 @@
1
// replace any ${ENV} values with the appropriate environ.
2
3
-const envExpr = /(\\*)\$\{([^}]+)\}/g
+const envExpr = /(?<!\\)(\\*)\$\{([^${}]+)\}/g
4
5
module.exports = (f, env) => f.replace(envExpr, (orig, esc, name) => {
6
const val = env[name] !== undefined ? env[name] : `$\{${name}}`
0 commit comments