mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 18:16:10 +00:00
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:
1 parent
fbad52ef18
commit
10ac136f05
1 file changed
+5
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user