smartmatch/ts/index.ts
2020-02-25 19:54:15 +00:00

13 lines
305 B
TypeScript

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