diff --git a/PlayWallCore/src/de/tobias/playpad/project/Project.java b/PlayWallCore/src/de/tobias/playpad/project/Project.java index efa079db286bcad361e4d4b56e66bfcbd07465c1..086282dd501c830e54d23fef0e24a1be808dc523 100644 --- a/PlayWallCore/src/de/tobias/playpad/project/Project.java +++ b/PlayWallCore/src/de/tobias/playpad/project/Project.java @@ -46,7 +46,7 @@ public class Project { /** * Pattern für den Namen des Projekts */ - public static final String PROJECT_NAME_PATTERN = "\\w{1}[\\w\\s-_]{0,}"; + public static final String PROJECT_NAME_PATTERN = "[\\p{L}0-9]{1}[\\p{L}\\s-_0-9]{0,}"; /** * Dateiendung für eine projekt Datei */ diff --git a/PlayWallCore/src/de/tobias/playpad/settings/Profile.java b/PlayWallCore/src/de/tobias/playpad/settings/Profile.java index d34f11b239f332a2ab712505bc35ca94779f6bde..35ea90703f7cd314457bbdbc018348d3175b52c5 100644 --- a/PlayWallCore/src/de/tobias/playpad/settings/Profile.java +++ b/PlayWallCore/src/de/tobias/playpad/settings/Profile.java @@ -26,7 +26,7 @@ public class Profile { private static final String MAPPING_XML = "Mapping.xml"; private static final String LAYOUT_XML = "Layout.xml"; - public static final String profileNameEx = "[\\p{L},0-9]{1}[\\p{L}\\s-_]{0,}"; + public static final String profileNameEx = "[\\p{L}0-9]{1}[\\p{L}\\s-_0-9]{0,}"; private static List<ProfileListener> listeners = new ArrayList<>(); private static Profile currentProfile;