Skip to content

Commit c045a53

Browse files
authored
Fix test regex (#5857)
1 parent 9ae735c commit c045a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io/flutter/sdk/FlutterSdk.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public FlutterCommand flutterTest(@NotNull PubRoot root, @NotNull VirtualFile fi
383383
}
384384
if (useRegexp) {
385385
args.add("--name");
386-
args.add("^" + StringUtil.escapeToRegexp(testNameSubstring) + "( \\(variant: .*\\))?$");
386+
args.add(StringUtil.escapeToRegexp(testNameSubstring) + "(\\s*\\(variant: .*\\))?$");
387387
}
388388
else {
389389
args.add("--plain-name");

0 commit comments

Comments
 (0)