From 4c40ba36a60643d99da6ec7b8b163002e1f5bea4 Mon Sep 17 00:00:00 2001 From: luketeam5 Date: Tue, 23 Jul 2024 00:07:34 +0200 Subject: [PATCH 1/2] Better regex --- .../xephi/authme/settings/properties/RestrictionSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java b/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java index 1fc8341f..d7d40aca 100644 --- a/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java +++ b/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java @@ -173,7 +173,7 @@ public final class RestrictionSettings implements SettingsHolder { @Comment("Regex syntax for allowed chars in email.") public static final Property ALLOWED_EMAIL_REGEX = - newProperty("settings.restrictions.allowedEmailCharacters", "^[A-Za-z0-9_.]{3,20}@(qq|outlook|163|gmail|icloud)\\.com$"); + newProperty("settings.restrictions.allowedEmailCharacters", "^([a-zA-Z0-9_.+-]+)@([a-zA-Z0-9-]+)\.([a-zA-Z]{2,})$"); @Comment("Force survival gamemode when player joins?") From f0fae0fce0a0dbec311fdf95e32e925e0092fbcb Mon Sep 17 00:00:00 2001 From: luketeam5 Date: Tue, 23 Jul 2024 03:34:10 +0200 Subject: [PATCH 2/2] Update RestrictionSettings.java --- .../xephi/authme/settings/properties/RestrictionSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java b/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java index d7d40aca..06eb2b55 100644 --- a/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java +++ b/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java @@ -173,7 +173,7 @@ public final class RestrictionSettings implements SettingsHolder { @Comment("Regex syntax for allowed chars in email.") public static final Property ALLOWED_EMAIL_REGEX = - newProperty("settings.restrictions.allowedEmailCharacters", "^([a-zA-Z0-9_.+-]+)@([a-zA-Z0-9-]+)\.([a-zA-Z]{2,})$"); + newProperty("settings.restrictions.allowedEmailCharacters", "^([a-zA-Z0-9_.+-]+)@([a-zA-Z0-9-]+)\\.([a-zA-Z]{2,})$"); @Comment("Force survival gamemode when player joins?")