✏️ 修复GitHub搜索正则

This commit is contained in:
Yiwen-Chan 2021-05-02 19:04:55 +08:00
parent 6e24552be8
commit dbe30433a1

View File

@ -14,7 +14,7 @@ import (
)
func init() { // 插件主体
zero.OnRegex(`^>github\s(-.{1,10} )?(.*)$`).SetBlock(true).FirstPriority().
zero.OnRegex(`^>github\s(-.{1,10}? )?(.*)$`).SetBlock(true).FirstPriority().
Handle(func(ctx *zero.Ctx) {
// 发送请求
header := http.Header{