Fix inconsistent logic in PrefixMatch (#5681)

Co-authored-by: ggnn <ggnn@ggnndeMacBook-Pro.local>
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
This commit is contained in:
ggndnn 2020-10-17 12:46:10 +08:00 committed by GitHub
parent 06bec02869
commit 45e02ec106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class PrefixMatch implements IndirectMatch {
if (junction == null) {
junction = ElementMatchers.nameStartsWith(prefix);
} else {
junction = junction.and(ElementMatchers.nameStartsWith(prefix));
junction = junction.or(ElementMatchers.nameStartsWith(prefix));
}
}