summaryrefslogtreecommitdiff
path: root/tools/tmwcon/src/converter
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tmwcon/src/converter')
-rw-r--r--tools/tmwcon/src/converter/Process.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tmwcon/src/converter/Process.java b/tools/tmwcon/src/converter/Process.java
index 8f077d5c..5b42df09 100644
--- a/tools/tmwcon/src/converter/Process.java
+++ b/tools/tmwcon/src/converter/Process.java
@@ -142,7 +142,7 @@ public class Process {
}
String folderName = scriptDirectory + name;
if (title.length() > 0) {
- folderName += "_" + title.replaceAll("\\s", "_");
+ folderName += "_" + title.replaceAll("\\s", "_").replaceAll("[^A-Za-z0-9\\-_]", "");
title = name + " " + title;
} else {
title = name;