Skip to content

fix: reject invalid dates/times and drop broken screenshot refs - #1

Merged
hc-ui merged 19 commits into
mainfrom
cursor/optimize-kebiao2ics-aa74
Aug 26, 2026
Merged

hc-ui merged 19 commits into
mainfrom
cursor/optimize-kebiao2ics-aa74

Conversation

@hc-ui

@hc-ui hc-ui commented Aug 26, 2026 •

Copy link
Copy Markdown
Owner

改动

  • ics.js:拒绝无效开学日期(如 2026-02-30)、24:00 这类非法作息、非整数天数、负数/NaN 提醒,避免写出带 NaN 的 .ics
  • 调休里写成 YYYY-MM-DD 的假日期也会抛错
  • 本轮增量:作息时间接受浏览器 <input type="time"> 的 HH:MM:SS / .sss(Safari / 部分 Chromium),24:00 仍拒绝。版本仍是 1.1.3
  • README / index.html 去掉仓库里不存在的截图与 og:image

没有 PR 模板。未改 .github/workflows/*。

验证

node --test tests/core.test.mjs tests/hhmmss.test.mjs → 49 passed。

@hc-ui
hc-ui marked this pull request as ready for review August 26, 2026 10:28
@hc-ui
hc-ui merged commit ab72c7f into main Aug 26, 2026
2 checks 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