Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed tests - couldn't find correct dir for test data

  • Loading branch information...
commit f52ac8037581f37aea967dd6f3b50b1b6f7ef321 1 parent acc12b1
@joewalnes joewalnes authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sitemesh/src/test/java/org/sitemesh/TestUtil.java
View
2  sitemesh/src/test/java/org/sitemesh/TestUtil.java
@@ -76,7 +76,7 @@ public static File findDir(String path) throws FileNotFoundException {
if (dir1.exists()) {
return dir1;
}
- File dir2 = new File(path.replaceFirst(".*/", ""));
+ File dir2 = new File(path.replaceFirst("[^/]*/", ""));
if (dir2.exists()) {
return dir2;
}
Please sign in to comment.
Something went wrong with that request. Please try again.