修正重命名时集数的问题
This commit is contained in:
@@ -69,7 +69,7 @@ func main() {
|
||||
newName := fmt.Sprintf("%s%s", epdata.Title, path.Ext(filenames[i]))
|
||||
if len(params) > 1 {
|
||||
if match, _ := regexp.MatchString(".*%\\d*d.*", params[1]); match {
|
||||
newName = fmt.Sprintf(params[1], i+1, newName)
|
||||
newName = fmt.Sprintf(params[1], epdata.Index, newName)
|
||||
} else {
|
||||
newName = fmt.Sprintf(params[1], newName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user