sanitizer

package
v1.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Re       = regexp.MustCompile(`\d+`)
	SafeWord = SafeWordFunc([]byte(options.Config.IdLog))
)

Functions

func ExtractLevelUpper

func ExtractLevelUpper(log []byte) []byte

func SafeWordFunc

func SafeWordFunc(word []byte) *regexp.Regexp

func Sanitizer

func Sanitizer(text []byte, idLog string) (newSlice []byte)

This function cleans the text by removing spaces and ignoring the words inside the filters

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL