瀏覽代碼

fix matcher group

Darien Raymond 7 年之前
父節點
當前提交
e72d4d6c25
共有 1 個文件被更改,包括 4 次插入0 次删除
  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