Fix accuracy for regex filtering for nodejs testing
This commit is contained in:
@@ -118,10 +118,11 @@ export class RegExpKotlinTestsFilter implements KotlinTestsFilter {
|
|||||||
public readonly regexp: RegExp;
|
public readonly regexp: RegExp;
|
||||||
|
|
||||||
constructor(wildcard: string) {
|
constructor(wildcard: string) {
|
||||||
this.regexp = RegExp(wildcard
|
this.regexp = RegExp("^" + wildcard
|
||||||
.split('*')
|
.split('*')
|
||||||
.map(it => escapeRegExp(it))
|
.map(it => escapeRegExp(it))
|
||||||
.join('.*'));
|
.join('.*') + "$"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
mayContainTestsFromSuite(fqn: string): boolean {
|
mayContainTestsFromSuite(fqn: string): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user