From 42b4f8f9153434c93d60980ce146a2479c92179e Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 8 Oct 2023 23:54:15 +0200 Subject: [PATCH] util: fix varname lookup with default --- packages/taler-util/src/talerconfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taler-util/src/talerconfig.ts b/packages/taler-util/src/talerconfig.ts index f817d9bcb..bb6eada7c 100644 --- a/packages/taler-util/src/talerconfig.ts +++ b/packages/taler-util/src/talerconfig.ts @@ -184,7 +184,7 @@ export function pathsub( defaultValue = undefined; } - const r = lookup(inner, depth + 1); + const r = lookup(varname, depth + 1); if (r !== undefined) { s = s.substring(0, start) + r + s.substring(p + 1); l = start + r.length;