- missed one file

This commit is contained in:
Richard Alam 2014-02-25 15:47:36 +00:00
parent 32431f62c7
commit 377494ca0a

View File

@ -0,0 +1,15 @@
package org.bigbluebutton.api;
import java.util.regex.Pattern;
public final class Util {
public static String cleanPresentationFilename(String name) {
String cleanFilename = Pattern.compile("[^0-9a-zA-Z_.]").matcher(name).replaceAll("-");
if (cleanFilename.startsWith(".")) {
return cleanFilename.substring(1);
} else {
return cleanFilename;
}
}
}