diff options
author | Jared Adams <jaxad0127@gmail.com> | 2008-11-23 14:24:20 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2008-11-23 14:24:20 +0000 |
commit | 8299cfd1b003586e209cab5277f5049ffa5b7e3b (patch) | |
tree | 7006dc5f53c81d85b4a43330f2088d5085ddc022 | |
parent | f7eb01b8adfda4646bb8ff635f7617ce44fade04 (diff) | |
download | tools-8299cfd1b003586e209cab5277f5049ffa5b7e3b.tar.gz tools-8299cfd1b003586e209cab5277f5049ffa5b7e3b.tar.bz2 tools-8299cfd1b003586e209cab5277f5049ffa5b7e3b.tar.xz tools-8299cfd1b003586e209cab5277f5049ffa5b7e3b.zip |
Fix names of map folders
THe converter has been changed to on;y have 0-9A-Za-z-_ as valid
characters in map folder names.
-rw-r--r-- | tmwcon/src/converter/Process.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmwcon/src/converter/Process.java b/tmwcon/src/converter/Process.java index 8f077d5..5b42df0 100644 --- a/tmwcon/src/converter/Process.java +++ b/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; |