From b845809b5855f9a1a3ee75bcb9cf7dd2d329515d Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Sat, 3 Apr 2021 19:50:42 +0200 Subject: [PATCH] The great Escape - Adresses #1324 --- .../com/simibubi/create/foundation/utility/FilesHelper.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/simibubi/create/foundation/utility/FilesHelper.java b/src/main/java/com/simibubi/create/foundation/utility/FilesHelper.java index 2cbff0055..cd916fd4a 100644 --- a/src/main/java/com/simibubi/create/foundation/utility/FilesHelper.java +++ b/src/main/java/com/simibubi/create/foundation/utility/FilesHelper.java @@ -40,11 +40,7 @@ public class FilesHelper { } public static String slug(String name) { - return Lang.asId(name) - .replace(' ', '_') - .replace('!', '_') - .replace(':', '_') - .replace('?', '_'); + return Lang.asId(name).replaceAll("\\W+", "_"); } public static boolean saveTagCompoundAsJson(CompoundNBT compound, String path) {