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:
parent
06bec02869
commit
45e02ec106
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue