Skip to content

Commit

Permalink
fix: wildcard matching problem (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyxim authored Apr 28, 2023
1 parent 3ba9484 commit a4334e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions component/trie/domain_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ func (ss *DomainSet) Has(key string) bool {
goto RESTART
}
}
for ; ; nextBmIdx++ {
if nextBmIdx-nextNodeId < len(ss.labels) && ss.labels[nextBmIdx-nextNodeId] == domainStepByte {
for ; nextBmIdx-nextNodeId < len(ss.labels); nextBmIdx++ {
if ss.labels[nextBmIdx-nextNodeId] == domainStepByte {
bmIdx = nextBmIdx
nodeId = nextNodeId
i = j
Expand Down

0 comments on commit a4334e1

Please sign in to comment.