MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / replaceCronNames

Function replaceCronNames

packages/node-core/src/cron/common.ts:45–51  ·  view source on GitHub ↗
(cronExpression: string)

Source from the content-addressed store, hash-verified

43 * Replaces names in cron expressions
44 */
45export 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}

Callers 4

constructFunction · 0.90
getFunction · 0.90
monitoredCallbackFunction · 0.90
monitoredCallbackFunction · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected