We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b9b51c commit c2a48f5Copy full SHA for c2a48f5
1 file changed
rewrite-test/src/main/java/org/openrewrite/test/Dir.java
@@ -30,7 +30,7 @@ public class Dir implements Iterable<SourceSpec<?>>, SourceSpecs {
30
31
public Dir(String dir, Consumer<SourceSpec<SourceFile>> spec, SourceSpecs... sourceSpecs) {
32
// Prevent invalid paths such as `<project>` passed into `mavenProject(...)` where `pomXml` should be used
33
- if (!dir.matches("[- \\w/\\\\]+")) {
+ if (!dir.matches("[- \\w/\\\\]*")) {
34
throw new IllegalArgumentException("Invalid directory: " + dir);
35
}
36
this.dir = dir;
0 commit comments