fix: CronPreview step=0 무한루프 방지

parseField에서 cron step 값이 0일 때 for 루프가 종료되지 않는
버그 수정. step <= 0이면 전체 범위를 반환하도록 방어 코드 추가.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
HYOJIN 2026-03-17 10:40:25 +09:00
부모 5f44e682c3
커밋 9ab298e52d

파일 보기

@ -89,6 +89,7 @@ function parseField(field: string, min: number, max: number): number[] | null {
if (stepMatch) { if (stepMatch) {
const [, base, stepStr] = stepMatch; const [, base, stepStr] = stepMatch;
const step = parseInt(stepStr, 10); const step = parseInt(stepStr, 10);
if (step <= 0) return range(min, max);
let start = min; let start = min;
let end = max; let end = max;