Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a6fc4110e | |||
| c82bb44007 |
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartmatch",
|
"name": "@pushrocks/smartmatch",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartmatch",
|
"name": "@pushrocks/smartmatch",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a minimal matching library using picomatch",
|
"description": "a minimal matching library using picomatch",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
import * as plugins from './smartmatch.plugins';
|
import * as plugins from './smartmatch.plugins';
|
||||||
|
|
||||||
export class SmartMatch {
|
export class SmartMatch {
|
||||||
private picomatch;
|
public wildcard: string;
|
||||||
public wildcard;
|
|
||||||
constructor(wildcardArg: string) {
|
constructor(wildcardArg: string) {
|
||||||
this.wildcard = wildcardArg;
|
this.wildcard = wildcardArg;
|
||||||
}
|
}
|
||||||
|
|
||||||
public match(matchStringArg): boolean {
|
public match(matchStringArg: string): boolean {
|
||||||
return plugins.matcher.isMatch(matchStringArg, this.wildcard);
|
return plugins.matcher.isMatch(matchStringArg, this.wildcard);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user