From 8299cfd1b003586e209cab5277f5049ffa5b7e3b Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 23 Nov 2008 14:24:20 +0000 Subject: 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. --- tmwcon/src/converter/Process.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2