(cronExpression: string)
| 43 | * Replaces names in cron expressions |
| 44 | */ |
| 45 | export function replaceCronNames(cronExpression: string): string { |
| 46 | return replacements.reduce( |
| 47 | // oxlint-disable-next-line sdk/no-regexp-constructor |
| 48 | (acc, [name, replacement]) => acc.replace(new RegExp(name, 'gi'), replacement), |
| 49 | cronExpression, |
| 50 | ); |
| 51 | } |
no test coverage detected