chore: fix incorrect regex variable (#29089)
This commit is contained in:
parent
9f39818386
commit
16f2f89d42
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ func New(log *util.Logger, cc Settings) (*Pipeline, error) {
|
|||
func (p *Pipeline) WithRegex(regex, dflt string) (*Pipeline, error) {
|
||||
re, err := regexp.Compile(regex)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("invalid regex '%s': %w", re, err)
|
||||
return nil, fmt.Errorf("invalid regex '%s': %w", regex, err)
|
||||
}
|
||||
|
||||
p.re = re
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue