smartmatch/ts/index.ts
2020-02-25 19:55:32 +00:00

12 lines
300 B
TypeScript

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