Skip to content

Commit

Permalink
fix:rawMetaValue matchAll (#214)
Browse files Browse the repository at this point in the history
Co-authored-by: fupengcheng <[email protected]>
  • Loading branch information
FuPengCheng1 and fupengcheng authored Aug 17, 2024
1 parent da06acf commit 1f7b1e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/servicerouter/rulebase/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ func (g *RuleBasedInstancesFilter) matchSourceMetadata(ruleMeta map[string]*apim
if !exist {
return false, "", nil
}
if rawMetaValue == matchAll {
continue
}
switch ruleMetaValue.Type {
case apimodel.MatchString_REGEX:
var matchExp *regexp.Regexp
Expand Down

0 comments on commit 1f7b1e7

Please sign in to comment.