fix: Filters from list and regex both match (#2)
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
763359c3d6
commit
9cff851021
6 changed files with 254 additions and 41 deletions
|
|
@ -141,6 +141,18 @@ func (c *Config) CompileRegexes() (err error) {
|
|||
return err
|
||||
}
|
||||
}
|
||||
if c.IncludeDatabasesRegex != "" {
|
||||
c.IncludeDatabasesRegexCompiled, err = regexp.Compile(c.IncludeDatabasesRegex)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if c.ExcludeDatabasesRegex != "" {
|
||||
c.ExcludeDatabasesRegexCompiled, err = regexp.Compile(c.ExcludeDatabasesRegex)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue