Explorar o código

fix matcher group

Darien Raymond %!s(int64=7) %!d(string=hai) anos
pai
achega
e72d4d6c25
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      common/strmatcher/strmatcher.go

+ 4 - 0
common/strmatcher/strmatcher.go

@@ -89,6 +89,10 @@ func (g *MatcherGroup) Match(pattern string) uint32 {
 		return c
 	}
 
+	if c := g.domainMatcher.Match(pattern); c > 0 {
+		return c
+	}
+
 	for _, e := range g.otherMatchers {
 		if e.m.Match(pattern) {
 			return e.id