Commit f353dca7 authored by Marcel's avatar Marcel
Browse files

#4 work around for songbeamer bug with multiple spaces at the end of a filename

parent 88e73f52
Pipeline #96065109 passed with stage
in 1 minute and 7 seconds
......@@ -5,7 +5,7 @@
<groupId>de.apis-stuttgart</groupId>
<artifactId>churchtools-to-songbeamer</artifactId>
<version>1.1.2</version>
<version>1.1.3</version>
<packaging>jar</packaging>
<name>churchtools-to-songbeamer</name>
......
......@@ -112,6 +112,6 @@ public class AgendaConverterService {
}
private String sanitizeFilename(String filename) {
return filename.replaceAll("[\\/:*?<>|]+", "-");
return filename.replaceAll("[\\/:*?<>|]+", "-").trim();
}
}
......@@ -29,6 +29,7 @@ public class SbControllerService {
private void runCommand(String command) {
try {
log.info("Run command: " + command);
Runtime.getRuntime().exec(command);
Thread.sleep(1000);
} catch (IOException | InterruptedException e) {
......
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