From 9af098fb874c1a8122ab7a5e009235a1f7df72f5 Mon Sep 17 00:00:00 2001 From: nlf Date: Mon, 14 Feb 2022 11:14:33 -0800 Subject: [PATCH] fix: correct a polynomial regex (#39) --- lib/env-replace.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}}`