Censoring:智能检查或突出显示单词和其他模式

时间:2021-05-15 10:37:49
【文件属性】:
文件名称:Censoring:智能检查或突出显示单词和其他模式
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-15 10:37:49
JavaScript * 该模块允许您检测文本中的模式,即使试图隐藏它们,然后高亮显示(标记)或检查(替换)它们。 它检查上壳体,下壳体,1337个替换件或s.pl.'i * t。 注意:该模块在浏览器中可以作为全局模块或AMD模块,也可以在node.js中使用。 例子: var Censoring = require ( 'censoring' ) , scan = new Censoring ( ) , testSentence = '' ; // Enable filters we want to use scan . enableFilters ( [ 'phone_number' , 'email_address' , 'words' ] ) ; // Word testSentence += 'The 1nt3r.n.e.t will not be
【文件预览】:
Censoring-master
----.gitignore(157B)
----README.md(5KB)
----LICENSE(1KB)
----package.json(574B)
----index.js(9KB)

网友评论