Skip to content

Commit df8a320

Browse files
authored
fix baiduaudit的正则错误 (#495)
修复一个正则错误,导致不能正确解析第二个ApiKey的问题
1 parent 8e8464d commit df8a320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/baiduaudit/audit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func init() {
241241
config.Groups[ctx.Event.GroupID] = group
242242
ctx.SendChain(message.At(ctx.Event.UserID), message.Text(fmt.Sprintf("本群%s已%s", k2, k1)))
243243
})
244-
engine.OnRegex(`^配置BDAKey\s*(.*)\s*(.*)$`, zero.SuperUserPermission).SetBlock(true).
244+
engine.OnRegex(`^配置BDAKey\s(.*)\s(.*)$`, zero.SuperUserPermission).SetBlock(true).
245245
Handle(func(ctx *zero.Ctx) {
246246
k1 := ctx.State["regex_matched"].([]string)[1]
247247
k2 := ctx.State["regex_matched"].([]string)[2]

0 commit comments

Comments
 (0)