Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zaxtyson committed Mar 8, 2021
1 parent 507db3d commit 6d09672
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@

# 更新日志

## `v2.6.2`

- 修复文件后缀非小写导致的误判问题[#92](https://github.com/rachpt/lanzou-gui/issues/92)

## `v2.6.1`

- 修复下载某些 txt 文件失败的问题[#53](https://github.com/zaxtyson/LanZouCloud-API/issues/53)
Expand Down
2 changes: 1 addition & 1 deletion lanzou/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from lanzou.api.core import LanZouCloud

version = '2.6.1'
version = '2.6.2'

__all__ = ['utils', 'types', 'models', 'LanZouCloud', 'version']
2 changes: 1 addition & 1 deletion lanzou/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def is_name_valid(filename: str) -> bool:
'xmind', 'enc', 'bds', 'bdi', 'ssf', 'it', 'gz'
)

return filename.split('.')[-1] in valid_suffix_list
return filename.split('.')[-1].lower() in valid_suffix_list


def is_file_url(share_url: str) -> bool:
Expand Down

0 comments on commit 6d09672

Please sign in to comment.