MCPcopy
hub / github.com/caddyserver/caddy / MultiRegexpFilter

Struct MultiRegexpFilter

modules/logging/filters.go:655–659  ·  view source on GitHub ↗

MultiRegexpFilter is a Caddy log field filter that can apply multiple regular expression replacements to the same field. This filter processes operations in the order they are defined, applying each regexp replacement sequentially to the result of the previous operation. This allows users to define

Source from the content-addressed store, hash-verified

653// - Limits the maximum number of operations to prevent resource exhaustion
654// - Sanitizes input to prevent injection attacks
655type MultiRegexpFilter struct {
656 // A list of regexp operations to apply in sequence.
657 // Maximum of 50 operations allowed for security and performance.
658 Operations []regexpFilterOperation `json:"operations"`
659}
660
661// Security constants
662const (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected