Fixed createBranch() so that layered node lookups behave properly.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5579 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-04-30 18:48:19 +00:00
parent 7567867be1
commit f91cedfd69
5 changed files with 158 additions and 43 deletions

View File

@@ -141,4 +141,16 @@ public class AVMNodeConverter
decomposed[1] = path.substring(off + 1);
return decomposed;
}
/**
* Normalize an AVM path.
* @param path The incoming path.
* @return The normalized path.
*/
public static String NormalizePath(String path)
{
path = path.replaceAll("/+", "/");
path = path.replaceAll("/$", "");
return path;
}
}