12 lines
300 B
TypeScript
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);
|
|
}
|
|
} |