✏️ 小修正

This commit is contained in:
fumiama 2021-10-28 21:24:01 +08:00
parent 776d7fbbd9
commit 9608d1e736

View File

@ -25,7 +25,7 @@ func init() {
ctx.SendChain(message.Text("加密失败!"))
}
})
en.OnRegex("^解密([\u4e00-\u9fa5]*)$").SetBlock(true).ThirdPriority().
en.OnRegex("^解密([\u4e00-\u9fa5]*[\u3d01-\u3d06]?)$").SetBlock(true).ThirdPriority().
Handle(func(ctx *zero.Ctx) {
str := ctx.State["regex_matched"].([]string)[1]
es, err := base14.UTF82utf16be(helper.StringToBytes(str))