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:
부모
5f44e682c3
커밋
9ab298e52d
@ -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;
|
||||
|
||||
|
||||
불러오는 중...
Reference in New Issue
Block a user