v0.1.2 sanitizer redisigned with policies and rules
This commit is contained in:
@ -75,8 +75,8 @@ func (b *Builder) Format(format string) *Builder {
|
||||
}
|
||||
|
||||
// Sanitization sets the sanitization mode
|
||||
func (b *Builder) Sanitization(mode sanitizer.Mode) *Builder {
|
||||
b.cfg.Sanitization = mode
|
||||
func (b *Builder) Sanitization(policy sanitizer.PolicyPreset) *Builder {
|
||||
b.cfg.Sanitization = policy
|
||||
return b
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user