Permalink
Browse files

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

  • Loading branch information...
joewalnes committed Jan 20, 2010
1 parent acc12b1 commit f52ac8037581f37aea967dd6f3b50b1b6f7ef321
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit f52ac80

Please sign in to comment.