feat(cool): 添加敏感词过滤功能
- 引入 go-sensitive-word 敏感词过滤库 - 在全局初始化中加载敏感词库并配置过滤器 - 在创建玩家时应用敏感词过滤,替换不合适的昵称内容
This commit is contained in:
22
common/utils/go-sensitive-word-1.3.3/.gitignore
vendored
Normal file
22
common/utils/go-sensitive-word-1.3.3/.gitignore
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# Binaries for programs and plugins
|
||||
*.exe
|
||||
*.exe~
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
|
||||
# Test binary, built with `go test -c`
|
||||
*.test
|
||||
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
# Dependency directories (remove the comment below to include it)
|
||||
vendor/
|
||||
|
||||
# Edit Dir
|
||||
.idea
|
||||
.project
|
||||
.DS_Store
|
||||
.vscode
|
||||
.fleet
|
||||
Reference in New Issue
Block a user