Skip to content

Commit 1f7b1e7

Browse files
FuPengCheng1fupengcheng
andauthored
fix:rawMetaValue matchAll (#214)
Co-authored-by: fupengcheng <[email protected]>
1 parent da06acf commit 1f7b1e7

File tree

1 file changed

+3
-0
lines changed
  • plugin/servicerouter/rulebase

1 file changed

+3
-0
lines changed

plugin/servicerouter/rulebase/base.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ func (g *RuleBasedInstancesFilter) matchSourceMetadata(ruleMeta map[string]*apim
162162
if !exist {
163163
return false, "", nil
164164
}
165+
if rawMetaValue == matchAll {
166+
continue
167+
}
165168
switch ruleMetaValue.Type {
166169
case apimodel.MatchString_REGEX:
167170
var matchExp *regexp.Regexp

0 commit comments

Comments
 (0)