util: fix varname lookup with default

This commit is contained in:
Florian Dold 2023-10-08 23:54:15 +02:00
parent 101f62123a
commit 42b4f8f915
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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;