2020-02-25 18:34:29 +00:00
|
|
|
import * as plugins from './smartmatch.plugins';
|
|
|
|
|
2020-02-25 19:02:52 +00:00
|
|
|
export class SmartMatch {
|
|
|
|
private picomatch;
|
|
|
|
public globString;
|
|
|
|
constructor(globStringArg: string) {
|
|
|
|
this.globString = globStringArg;
|
|
|
|
this.picomatch = plugins.picomatch(this.globString);
|
|
|
|
}
|
|
|
|
|
|
|
|
public match(matchStringArg): boolean {
|
|
|
|
return this.picomatch(matchStringArg);
|
|
|
|
}
|
|
|
|
}
|