2 Commits

Author SHA1 Message Date
2a6fc4110e 1.0.6 2020-02-25 19:55:33 +00:00
c82bb44007 fix(core): update 2020-02-25 19:55:32 +00:00
3 changed files with 4 additions and 5 deletions

2
package-lock.json generated
View File

@@ -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": {

View File

@@ -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",

View File

@@ -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);
} }
} }