Fix commands not matching unicode-formatted homes, prevent dot in home names

This commit is contained in:
William committed 2022-08-24 20:05:10 +01:00
1 parent bd4d173bdc
commit 7b1930e554
2 files changed
+5 -3

No files matched your search

@@ -26,7 +26,7 @@ public final class RegexUtil {
* <p>
* e.g. {@code ownerName.homeName}
*/
private static final Pattern OWNER_DISAMBIGUATED_HOME_IDENTIFIER_PATTERN = Pattern.compile("\\w+\\.[A-Za-z\\d_\\-]+");
private static final Pattern OWNER_DISAMBIGUATED_HOME_IDENTIFIER_PATTERN = Pattern.compile("\\w+\\.[^.]{1,16}$");
/**
* Match pattern for checking home input fields disambiguated by the owner's name