added more convenience method.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2663 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-03-26 01:08:57 +00:00
1 parent fbad52ef18
commit 10ac136f05
1 file changed
+5
+5
View File
@@ -243,6 +243,11 @@ public class Util {
return v;
}
public static String removeTrailingSlash(String s) {
if(s.endsWith("/")) return s.substring(0,s.length()-1);
else return s;
}
/**
* Write-only buffer.
*/