Versions in this module Expand all Collapse all v1 v1.0.1 Oct 23, 2021 v1.0.0 Oct 23, 2021 Changes in this version + type SwearFilter struct + BadWordRegexps map[string]*regexp.Regexp + BadWords map[string]struct{} + DisableMultiWhitespaceStripping bool + DisableNormalize bool + DisableSimpleRegex bool + DisableSpacedBypass bool + DisableSpacedTab bool + DisableZeroWidthStripping bool + EnableFullRegex bool + func NewSwearFilter(enableFullRegex bool, uhohwords ...string) (filter *SwearFilter) + func (filter *SwearFilter) Add(badWords ...string) + func (filter *SwearFilter) Check(msg string) (trippedWords []string, err error) + func (filter *SwearFilter) Delete(badWords ...string) + func (filter *SwearFilter) Load() (activeWords []string)