diff --git a/lib/env-replace.js b/lib/env-replace.js index a6e4b29..e0f7276 100644 --- a/lib/env-replace.js +++ b/lib/env-replace.js @@ -1,6 +1,6 @@ // replace any ${ENV} values with the appropriate environ. -const envExpr = /(\\*)\$\{([^}]+)\}/g +const envExpr = /(? f.replace(envExpr, (orig, esc, name) => { const val = env[name] !== undefined ? env[name] : `$\{${name}}`