From dd37845806089ee47bf388e126814021ef3ade32 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. --- tools/tmwcon/src/converter/Process.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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; -- cgit v1.2.3-70-g09d2