aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-08-07 14:09:52 +0200
committeriNPUTmice <daniel@gultsch.de>2014-08-07 14:09:52 +0200
commit620d1df82e4240a863ab4762994a8f969f37ca79 (patch)
tree59f984ba5a889c0d5a2698692910d7626e9d0da1 /src/eu
parent6536c1aeb143ffaf4250c146c574ab25e1e178c2 (diff)
fixed #320
Diffstat (limited to 'src/eu')
-rw-r--r--src/eu/siacs/conversations/utils/Validator.java2
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 9ca1e34f..a1a119e7 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^[^@/<>'\"\\s]+@[^@/<>'\"\\s]+$", Pattern.CASE_INSENSITIVE);
+ Pattern.compile("^[^@/<>'\"\\s]+@[^@/<>'\"\\s]+$", Pattern.CASE_INSENSITIVE);
public static boolean isValidJid(String jid) {
Matcher matcher = VALID_JID.matcher(jid);