(
input: string,
variables: { [key: string]: any },
)
| 337 | } |
| 338 | |
| 339 | export function replaceVariables( |
| 340 | input: string, |
| 341 | variables: { [key: string]: any }, |
| 342 | ): string { |
| 343 | return input.replace(/\{(\w+)}/g, function (_match, variable) { |
| 344 | return variables.hasOwnProperty(variable) |
| 345 | ? variables[variable] |
| 346 | : `${variable}`; |
| 347 | }); |
| 348 | } |
| 349 | |
| 350 | export const ApiResponseCutText = `API response cut as it is too large (>20kb).`; |
| 351 |
no outgoing calls
no test coverage detected