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 | dd37845806089ee47bf388e126814021ef3ade32 (patch) | |
tree | 01dc9612fad05f3ccd187f0cf8ec9cb172134f66 /tools | |
parent | d607a8c72c02708e6a9edf6d25e37d1b7b2dbd78 (diff) | |
download | serverdata-dd37845806089ee47bf388e126814021ef3ade32.tar.gz serverdata-dd37845806089ee47bf388e126814021ef3ade32.tar.bz2 serverdata-dd37845806089ee47bf388e126814021ef3ade32.tar.xz serverdata-dd37845806089ee47bf388e126814021ef3ade32.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.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tmwcon/src/converter/Process.java | 2 |
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; |