Potential fix for code scanning alert no. 31: Incomplete string escaping or encoding (#479)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
v2
greper 2025-08-07 09:57:17 +08:00 committed by GitHub
parent 58b7fbcf75
commit 5ec025a3b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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);