Skip to content

Commit

Permalink
Merge pull request #6 from MinMinGuGu/V1.2.1
Browse files Browse the repository at this point in the history
修复文件分组没按照指令最后一个后缀处理
  • Loading branch information
MinMinGuGu authored Dec 14, 2023
2 parents 45c2071 + bf572ee commit 6530d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_file_name_list(args):
continue
if args.exclude and re.search(args.exclude, file):
continue
suffix_index = file.find('.')
suffix_index = file.rfind('.') if args.last_suffix else file.find('.')
file_name = file[:len(file) if suffix_index == -1 else suffix_index]
result.setdefault(file_name, []).append(file)
result = [(file_name, result[file_name]) for file_name in sorted(result.keys())]
Expand Down

0 comments on commit 6530d3b

Please sign in to comment.