Skip to content

Commit

Permalink
feat: 卷匹配正则, 章节匹配正则独立
Browse files Browse the repository at this point in the history
  • Loading branch information
ystyle committed Jul 18, 2023
1 parent 2f52e40 commit ec8aa6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ func (book *Book) Parse() error {
continue
}
// 处理标题
if utf8.RuneCountInString(line) <= int(book.Max) && book.Reg.MatchString(line) {
if utf8.RuneCountInString(line) <= int(book.Max) &&
(book.Reg.MatchString(line) || book.VolumeReg.MatchString(line)) {
if title == "" {
title = book.UnknowTitle
}
Expand Down

0 comments on commit ec8aa6a

Please sign in to comment.