diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-07-21 15:16:06 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-07-21 15:16:06 +0200 |
commit | aa844df1449937b3858c5a8a7fe2f5e2794a7332 (patch) | |
tree | 55672c90b99dc7efa91ac204a85f51534791448f /src/eu/siacs/conversations | |
parent | 3b7f89bbb0ba96b00f97ff23ea713bd2915c7c74 (diff) |
fixed #290
Diffstat (limited to 'src/eu/siacs/conversations')
-rw-r--r-- | src/eu/siacs/conversations/utils/Validator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/utils/Validator.java b/src/eu/siacs/conversations/utils/Validator.java index 51d8b25c..9ca1e34f 100644 --- a/src/eu/siacs/conversations/utils/Validator.java +++ b/src/eu/siacs/conversations/utils/Validator.java @@ -5,7 +5,7 @@ import java.util.regex.Pattern; public class Validator { public static final Pattern VALID_JID = - Pattern.compile("\\b^[A-Z0-9._%+-]+@([A-Z0-9.-]+\\.)?\\d{1,3}[.]\\d{1,3}[.]\\d{1,3}[.]\\d{1,3}\\b$|^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}$", Pattern.CASE_INSENSITIVE); + Pattern.compile("\\b^[^@/<>'\"\\s]+@[^@/<>'\"\\s]+$", Pattern.CASE_INSENSITIVE); public static boolean isValidJid(String jid) { Matcher matcher = VALID_JID.matcher(jid); |