Skip to content

lua版本敏感词过滤 底层使用go 使用star较多的go实现

Notifications You must be signed in to change notification settings

gels123/lua-sensitivewords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lua-sensitivewords

lua版本敏感词过滤,底层使用go,使用star较多的go实现,性能较高。 编译方法: cd main && make linux

使用方法:

` local lsensitivewords = require("lsensitivewords").new()

local path = require("lfs").currentdir().."/game/lib/lua-golibs/sensitivewords/dict.txt"

lsensitivewords:sensitiveWordLoadDict(path)

print("=============111==", lsensitivewords:sensitiveWordValidate("我嘞个草你妈的B"))

print("=============222==", lsensitivewords:sensitiveWordReplace("00000000000000我嘞个 草 你 妈 的B00000000000000", string.byte('*')))

`

About

lua版本敏感词过滤 底层使用go 使用star较多的go实现

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published