From 8bd1aa0662a3bb0c17c8e9151fa073f592fe9017 Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Sat, 26 Sep 2020 13:04:18 +0800 Subject: [PATCH] :pencil2: fix regex typo --- docs/guide/writing-a-plugin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/writing-a-plugin.md b/docs/guide/writing-a-plugin.md index bd176750..42657d9d 100644 --- a/docs/guide/writing-a-plugin.md +++ b/docs/guide/writing-a-plugin.md @@ -159,7 +159,7 @@ weather = on_command("天气", rule=to_me(), permission=Permission(), priority=5 - `on_startswith(str)` ~ `on("message", startswith(str))`: 消息开头匹配处理器 - `on_endswith(str)` ~ `on("message", endswith(str))`: 消息结尾匹配处理器 - `on_command(str|tuple)` ~ `on("message", command(str|tuple))`: 命令处理器 -- `on_regax(pattern_str)` ~ `on("message", regax(pattern_str))`: 正则匹配处理器 +- `on_regex(pattern_str)` ~ `on("message", regex(pattern_str))`: 正则匹配处理器 #### 匹配规则 rule