1.0.5 • Published 2 years ago
verification-sensitive v1.0.5
使用
// 导入敏感词过滤方法
import {replace,filtion} from "verification-sensitive";
// 使用replace 返回值为 字符串(被替换后的字符串)
let str = replace("检索词","替换字符");
// 使用 返回值为 Boolean类型(true含有敏感词,false无敏感词)
let flag = filtion("检索词");