Fix accuracy for regex filtering for nodejs testing

This commit is contained in:
Ilya Goncharov
2019-09-16 19:21:32 +03:00
parent e2aecee925
commit f0af4756a9
@@ -118,10 +118,11 @@ export class RegExpKotlinTestsFilter implements KotlinTestsFilter {
public readonly regexp: RegExp;
constructor(wildcard: string) {
this.regexp = RegExp(wildcard
this.regexp = RegExp("^" + wildcard
.split('*')
.map(it => escapeRegExp(it))
.join('.*'));
.join('.*') + "$"
);
}
mayContainTestsFromSuite(fqn: string): boolean {