Skip to content

[master] fix: cap review interval at 365 days - #15

Merged
Tomlord1122 merged 1 commit into
masterfrom
fix/cap-review-interval
Sep 15, 2026
Merged

Tomlord1122 merged 1 commit into
masterfrom
fix/cap-review-interval

Conversation

@Tomlord1122

Copy link
Copy Markdown
Member

Background

CIR doubled review intervals with no upper bound. Rating Easy on a problem that is not due can overflow Date.setDate after about 27 ratings, which writes next_review_date as NaN-NaN-NaN so the card never comes due.

fd36e89: Clamp the CIR interval to 365 days after all multipliers so next review dates stay inside the JavaScript Date range.

Signed-off-by: Tom Liu (Liu Hsiu-Chi) <0xtomlord1122@gmail.com>
@Tomlord1122
Tomlord1122 merged commit ad4e91e into master Sep 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant