verify-sensitive-words
v1.0.2
Published
校验敏感词
Downloads
13
Readme
使用
// 导入敏感词过滤方法
import { replace, filtion, SensitiveArray } from "verify-sensitive-words"
// 使用replace 返回值为 字符串(被替换后的字符串)
let str = replace("检索词", "替换字符")
// 使用 返回值为 Boolean类型(true含有敏感词,false无敏感词)
let flag = filtion("检索词")
// SensitiveArray敏感词集合