fix(core): update

This commit is contained in:
2020-02-25 19:54:15 +00:00
parent a92cb2e612
commit 74a08d6e39
4 changed files with 22 additions and 13 deletions

View File

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

View File

@ -1,6 +1,6 @@
// third party scope
import picomatch from 'picomatch';
import matcher from 'matcher';
export {
picomatch
matcher
}