Documentation
¶
Overview ¶
Package moderation rejects user-supplied display text (usernames, chat titles, flow names) that contains profanity, so the same rules apply everywhere a name is accepted. It wraps github.com/TwiN/go-away, which sanitises leetspeak and spacing tricks (f.u.c.k, fück) and carries a false-positive list (assassin, class, scunthorpe).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrProfane = errors.New("name contains inappropriate language")
ErrProfane reports that the supplied text contains profanity.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.