This commit is contained in:
Alex Yatskov 2023-11-03 19:25:26 -07:00
parent 2c12c2d6ea
commit de95e6bebb
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ type Page struct {
}
func (self *Page) export(dir string, config ExportConfig) error {
name, err := buildTemplatedName(config.PageTemplate, self.Node.Name, self.Index+1, len(self.Volume.Pages)-1)
name, err := buildTemplatedName(config.PageTemplate, self.Node.Name, self.Index+1, len(self.Volume.Pages))
if err != nil {
return err
}
@ -118,7 +118,7 @@ type Volume struct {
}
func (self *Volume) export(path string, config ExportConfig, allocator *TempDirAllocator) error {
name, err := buildTemplatedName(config.VolumeTemplate, stripExt(self.Node.Name), self.Index, self.Book.VolumeCount-1)
name, err := buildTemplatedName(config.VolumeTemplate, stripExt(self.Node.Name), self.Index, self.Book.VolumeCount)
if err != nil {
return err
}

View File

@ -1,3 +1,3 @@
第\s*(\d+)\s*巻
(?i)vo?l?u?m?e?[.\s]*(\d+)
`(\d+)\D*$`
(\d+)\D*$