Skip to content
Snippets Groups Projects
Commit 9e91eb8e authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Fix regex for e-mail domain patterns

parent fedac250
No related merge requests found
......@@ -434,7 +434,7 @@ public class UserService implements IUserService {
if (domainList.size() > 0) {
List<String> patterns = new ArrayList<String>();
if (domainList.contains("*")) {
patterns.add("([a-z0-9-]\\.)+[a-z0-9-]");
patterns.add("([a-z0-9-]+\\.)+[a-z0-9-]+");
} else {
Pattern patternPattern = Pattern.compile("[a-z0-9.*-]+", Pattern.CASE_INSENSITIVE);
for (String patternStr : domainList) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment