chore: fix incorrect regex variable (#29089)

This commit is contained in:
Sebastian Schrittwieser 2026-04-13 22:18:26 +02:00 • committed by GitHub
parent 9f39818386
commit 16f2f89d42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,7 @@ func New(log *util.Logger, cc Settings) (*Pipeline, error) {
func (p *Pipeline) WithRegex(regex, dflt string) (*Pipeline, error) { func (p *Pipeline) WithRegex(regex, dflt string) (*Pipeline, error) {
re, err := regexp.Compile(regex) re, err := regexp.Compile(regex)
if err != nil { 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 p.re = re