aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-05-04 15:27:19 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2015-05-04 15:27:19 +0200
commit2cd1cf9192aee76a0f2481281148783519d208a7 (patch)
tree13928aef51413abd83e8a75d1f5e82a19a6addd0 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain
parent9698cb94e3e2e1cf479bef95506cefa6057cbc08 (diff)
downloadopen-keychain-2cd1cf9192aee76a0f2481281148783519d208a7.tar.gz
open-keychain-2cd1cf9192aee76a0f2481281148783519d208a7.tar.bz2
open-keychain-2cd1cf9192aee76a0f2481281148783519d208a7.zip
Fix email pattern
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyEmailFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyEmailFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyEmailFragment.java
index 0a9ddf382..64dc71785 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyEmailFragment.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyEmailFragment.java
@@ -53,7 +53,7 @@ public class CreateKeyEmailFragment extends Fragment {
// NOTE: Do not use more complicated pattern like defined in android.util.Patterns.EMAIL_ADDRESS
// EMAIL_ADDRESS fails for mails with umlauts for example
- private static final Pattern EMAIL_PATTERN = Pattern.compile(".[\\S]+@.[\\S]+\\.[a-z]+");
+ private static final Pattern EMAIL_PATTERN = Pattern.compile("^[\\S]+@[\\S]+\\.[a-z]+$");
/**
* Creates new instance of this fragment