aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/utils
diff options
context:
space:
mode:
authorSam Whited <sam@samwhited.com>2014-12-23 13:23:13 -0500
committerSam Whited <sam@samwhited.com>2014-12-23 13:23:13 -0500
commitd45478801139d8fa6222d8b73ec96b81be2127bd (patch)
tree5b29f79743902987e838d35143479a768d844440 /src/main/java/eu/siacs/conversations/utils
parent45ef112b0c90d965e50143c26c8850ba1f90ef48 (diff)
Remove old JID validator
Diffstat (limited to 'src/main/java/eu/siacs/conversations/utils')
-rw-r--r--src/main/java/eu/siacs/conversations/utils/Validator.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/Validator.java b/src/main/java/eu/siacs/conversations/utils/Validator.java
deleted file mode 100644
index 00130fa2..00000000
--- a/src/main/java/eu/siacs/conversations/utils/Validator.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package eu.siacs.conversations.utils;
-
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-public class Validator {
- public static final Pattern VALID_JID = Pattern.compile(
- "^[^@/<>'\"\\s]+@[^@/<>'\"\\s]+$", Pattern.CASE_INSENSITIVE);
-
- public static boolean isValidJid(String jid) {
- Matcher matcher = VALID_JID.matcher(jid);
- return matcher.find();
- }
-}