util: fix varname lookup with default
This commit is contained in:
parent
101f62123a
commit
42b4f8f915
@ -184,7 +184,7 @@ export function pathsub(
|
|||||||
defaultValue = undefined;
|
defaultValue = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
const r = lookup(inner, depth + 1);
|
const r = lookup(varname, depth + 1);
|
||||||
if (r !== undefined) {
|
if (r !== undefined) {
|
||||||
s = s.substring(0, start) + r + s.substring(p + 1);
|
s = s.substring(0, start) + r + s.substring(p + 1);
|
||||||
l = start + r.length;
|
l = start + r.length;
|
||||||
|
Loading…
Reference in New Issue
Block a user