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",
"version": "1.0.5",
"version": "1.0.6",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartmatch",
"version": "1.0.5",
"version": "1.0.6",
"private": false,
"description": "a minimal matching library using picomatch",
"main": "dist/index.js",

View File

@@ -1,13 +1,12 @@
import * as plugins from './smartmatch.plugins';
export class SmartMatch {
private picomatch;
public wildcard;
public wildcard: string;
constructor(wildcardArg: string) {
this.wildcard = wildcardArg;
}
public match(matchStringArg): boolean {
public match(matchStringArg: string): boolean {
return plugins.matcher.isMatch(matchStringArg, this.wildcard);
}
}