Skip to content

Commit

Permalink
🔖 version 1.7.43
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Feb 10, 2024
1 parent 46a257a commit 54cb1a1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# 更新日志

## Alconna 1.7.43
### 修复

### 改进
- 允许快捷指令的关键词传入带有分隔符的命令

### 修复
- 修复快捷指令使用 `_` 时的异常错误

## Alconna 1.7.42
Expand Down
8 changes: 8 additions & 0 deletions tests/core_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,14 @@ def wrapper(slot, content):
alc16_7.shortcut("test 123", {"args": ["abc"]})
assert alc16_7.parse("test 123").bar == "abc"

alc16_8 = Alconna("core16_8", Args["bar", str])
res11 = alc16_8.parse("core16_8 1234")
assert res11.bar == "1234"
alc16_8.parse("core16_8 --shortcut test _")
res12 = alc16_8.parse("test")
assert res12.bar == "1234"


def test_help():
from arclet.alconna import output_manager
from arclet.alconna.exceptions import SpecialOptionTriggered
Expand Down

0 comments on commit 54cb1a1

Please sign in to comment.