【文件属性】:
文件名称:matchete:超级简单的字符串值匹配
文件大小:3KB
文件格式:ZIP
更新时间:2021-04-28 12:24:59
JavaScript
火柴
Matchete是一个非常简单的,不区分大小写JavaScript字符串匹配器,可用于计算一个值是否完全或部分包含搜索字符串中的单词。
安装
npm install --save matchete
原料药
Matchete接受源字符串,搜索字符串和可选的定界符。 默认分隔符是单个空格。
matchete ( sourceString , searchString , [ delimiter ] )
例子
matchete ( 'foobar baz boz' , 'foo' ) // true - partial match of the word
matchete ( 'foobar baz boz' , 'foobar' ) // true - full match of the word
matchete ( 'foobar baz boz' , 'foo ba' ) //
【文件预览】:
matchete-master
----.gitignore(36B)
----package.json(558B)
----Makefile(127B)
----.travis.yml(108B)
----matchete.js(769B)
----README.md(1KB)
----test()
--------matcheteTests.js(1KB)