Potential fix for code scanning alert no. 31: Incomplete string escaping or encoding

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
greper
2025-07-30 13:18:41 +08:00
committed by GitHub
parent 3fc863561a
commit fd692c237b

View File

@@ -461,7 +461,7 @@ export class PipelineService extends BaseService<PipelineEntity> {
cron = cron.replace("* *", "0 0");
}
if (cron.startsWith("*")) {
cron = cron.replace("*", "0");
cron = cron.replace(/\*/g, "0");
}
const triggerId = trigger.id;
const name = this.buildCronKey(pipelineId, triggerId);