14 lines
346 B
TypeScript
14 lines
346 B
TypeScript
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 match(matchStringArg): boolean {
|
|
return this.picomatch(matchStringArg);
|
|
}
|
|
} |