fix: tighten chapter title boundary detection#92
Merged
Conversation
NewYuee
force-pushed
the
fix/chapter-preview-title-boundary
branch
2 times, most recently
from
July 10, 2026 03:00
e210083 to
4755781
Compare
Signed-off-by: NewYuee <new.y@foxmail.com>
NewYuee
force-pushed
the
fix/chapter-preview-title-boundary
branch
from
July 10, 2026 03:22
4755781 to
b1dbe27
Compare
Signed-off-by: NewYuee <new.y@foxmail.com>
Signed-off-by: NewYuee <new.y@foxmail.com>
Handanhhhy
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 类型 / Type of PR
改动说明 / What this PR does and why
收紧章节标题匹配规则,要求 第X章/第X集、Chapter X/Episode X 后面必须是行尾、空白或常见标题分隔符,避免把 第一集结束。/Episode 1 ends here. 这类正文句子误判为新章节。
同时补充中英文回归测试,确认正文里的章节结束句不会产生重复章节编号。
关联 issue / Linked issues
Fixes #91
给 reviewer 的说明 / Notes for the reviewer
重点关注章节标题边界规则是否覆盖现有导入格式。当前仍支持 Markdown 标题、书名号前缀、冒号/破折号/括号等常见标题分隔符。
面向用户的变更 / User-facing change
自检 / Checklist
uv run pytest通过 / Self-tested,uv run pytestpassesgit commit -s附 DCO 签署 / Every commit signed off withgit commit -s(DCO)验证命令:
UV_CACHE_DIR=/claymorelab/.uv-cache uv run pytest tests/test_api_ingest_chapter_preview.py