From 9ab298e52dab88a44df6c97118855ccda2785401 Mon Sep 17 00:00:00 2001 From: HYOJIN Date: Tue, 17 Mar 2026 10:40:25 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20CronPreview=20step=3D0=20=EB=AC=B4?= =?UTF-8?q?=ED=95=9C=EB=A3=A8=ED=94=84=20=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit parseField에서 cron step 값이 0일 때 for 루프가 종료되지 않는 버그 수정. step <= 0이면 전체 범위를 반환하도록 방어 코드 추가. Co-Authored-By: Claude Opus 4.6 --- frontend/src/utils/cronPreview.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/utils/cronPreview.ts b/frontend/src/utils/cronPreview.ts index 3fa99ae..7ed0e84 100644 --- a/frontend/src/utils/cronPreview.ts +++ b/frontend/src/utils/cronPreview.ts @@ -89,6 +89,7 @@ function parseField(field: string, min: number, max: number): number[] | null { if (stepMatch) { const [, base, stepStr] = stepMatch; const step = parseInt(stepStr, 10); + if (step <= 0) return range(min, max); let start = min; let end = max;