mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-15 03:23:52 +00:00
fix regexp quote
This commit is contained in:
parent
78d3ff14c8
commit
51909ba1f7
|
@ -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 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 {
|
type notifyTask struct {
|
||||||
channel string
|
channel string
|
||||||
|
|
||||||
|
@ -530,8 +532,6 @@ func diffsToComment(obj any, diffs []dynamic.Diff) (text string) {
|
||||||
return text
|
return text
|
||||||
}
|
}
|
||||||
|
|
||||||
var typeNamePrefixRE = regexp.MustCompile("^\\*?([a-zA-Z0-9_]+\\.)?")
|
|
||||||
|
|
||||||
func objectName(obj any) string {
|
func objectName(obj any) string {
|
||||||
type labelInf interface {
|
type labelInf interface {
|
||||||
Label() string
|
Label() string
|
||||||
|
|
Loading…
Reference in New Issue
Block a user