( value: string, transform: Transform, ctx: TransformContext )
| 110 | } |
| 111 | |
| 112 | function resolveString( |
| 113 | value: string, |
| 114 | transform: Transform, |
| 115 | ctx: TransformContext |
| 116 | ): string { |
| 117 | let resolved = expandCaptureGroups(value, ctx.match, ctx.keys); |
| 118 | if (transform.env && transform.env.length > 0 && ctx.env) { |
| 119 | resolved = expandEnvVars(resolved, transform.env, ctx.env); |
| 120 | } |
| 121 | return resolved; |
| 122 | } |
| 123 | |
| 124 | // similar to router.ts:resolveRouteParameters, |
| 125 | // but replaces only known groups and leaves the rest in place |
no test coverage detected