fix regexp quote

This commit is contained in:
c9s 2024-11-14 15:58:58 +08:00
parent 78d3ff14c8
commit 51909ba1f7
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -29,6 +29,8 @@ var groupIdRegExp = regexp.MustCompile(`^<!subteam\^(.+?)>$`)
var emailRegExp = regexp.MustCompile("`^(?P<name>[a-zA-Z0-9.!#$%&'*+/=?^_ \\x60{|}~-]+)@(?P<domain>[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$`gm")
var typeNamePrefixRE = regexp.MustCompile(`^\*?([a-zA-Z0-9_]+\.)?`)
type notifyTask struct {
channel string
@ -530,8 +532,6 @@ func diffsToComment(obj any, diffs []dynamic.Diff) (text string) {
return text
}
var typeNamePrefixRE = regexp.MustCompile("^\\*?([a-zA-Z0-9_]+\\.)?")
func objectName(obj any) string {
type labelInf interface {
Label() string