diff options
author | Florian Dold <florian@dold.me> | 2023-09-24 21:03:22 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-09-24 21:03:22 +0200 |
commit | 7b93938e710c8673ae9a0381b8867705ae872d6f (patch) | |
tree | 8aca0b1e5208497dc20e73355a192e9ad22b0baf /packages/taler-util/src/talerconfig.ts | |
parent | bdd906c88707b2ec8d6d1d4afbd0bba8e3a9a3cd (diff) | |
download | wallet-core-0.9.3-dev.23.tar.xz |
harness: add libeufin-bank integration testv0.9.3-dev.23
Diffstat (limited to 'packages/taler-util/src/talerconfig.ts')
-rw-r--r-- | packages/taler-util/src/talerconfig.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-util/src/talerconfig.ts b/packages/taler-util/src/talerconfig.ts index e9eb71279..f817d9bcb 100644 --- a/packages/taler-util/src/talerconfig.ts +++ b/packages/taler-util/src/talerconfig.ts @@ -143,9 +143,9 @@ export function expandPath(path: string): string { export function pathsub( x: string, lookup: (s: string, depth: number) => string | undefined, - depth = 0, + recursionDepth = 0, ): string { - if (depth >= 128) { + if (recursionDepth >= 128) { throw Error("recursion in path substitution"); } let s = x; @@ -201,7 +201,7 @@ export function pathsub( } else { const m = /^[a-zA-Z-_][a-zA-Z0-9-_]*/.exec(s.substring(l + 1)); if (m && m[0]) { - const r = lookup(m[0], depth + 1); + const r = lookup(m[0], recursionDepth + 1); if (r !== undefined) { s = s.substring(0, l) + r + s.substring(l + 1 + m[0].length); l = l + r.length; |