mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-05 13:08:57 +07:00
fix: missing regex domain matching
This commit is contained in:
parent
e15cae9377
commit
5806f9bb39
@ -113,6 +113,12 @@ func (n *Ahocorasick) Build() error {
|
||||
n.matchers[i] = ahocorasick.NewMatcher(toBuild)
|
||||
n.validIndexes = append(n.validIndexes, i)
|
||||
}
|
||||
for i := range n.regexp {
|
||||
if len(n.regexp[i]) == 0 {
|
||||
continue
|
||||
}
|
||||
n.validRegexpIndexes = append(n.validRegexpIndexes, i)
|
||||
}
|
||||
// Release it.
|
||||
n.toBuild = nil
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user