13 lines
305 B
TypeScript
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);
|
|
}
|
|
} |