Skip to content

Commit

Permalink
🐛 修复在部分平台输入内容可能会存在的左右空格
Browse files Browse the repository at this point in the history
  • Loading branch information
MelodyKnit committed Nov 17, 2023
1 parent a86e1ba commit 3608101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions nonebot_plugin_animeres/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ async def _(
state: T_State,
index: str = ArgPlainText(),
):
index = index.strip()
anime_search: BaseAnimeSearch = state["anime_search"]
if tag := await anime_search.get_tag(index):
anime_list = await anime_search.get_resources(tag)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot-plugin-animeres"
version = "1.0.3"
version = "1.0.4"
description = "动漫资源获取插件"
authors = ["MelodyKnit <2711402357@qq.com>"]
readme = "README.md"
Expand Down

0 comments on commit 3608101

Please sign in to comment.