Skip to content
Snippets Groups Projects
Commit 89a6a509 authored by tobias's avatar tobias
Browse files

Changed Regex for Profile and Project names

parent 1ccfb6bc
No related branches found
No related tags found
No related merge requests found
......@@ -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
*/
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment