Commit ed58e011 authored by Edward Wang's avatar Edward Wang

src: Add an utility function to strip spaces

parent 724989c8
......@@ -61,6 +61,13 @@ public class Util {
return URI;
}
public static String stripTrailingSlash(String _s) {
String s = _s;
if(s.endsWith("/"))
s = s.substring(0,s.length()-1);
return s;
}
/**
* Convert time to a string
* @param millis e.g.time/length from file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment