Fix email pattern

This commit is contained in:
Dominik Schürmann 2015-05-04 15:27:19 +02:00
parent 9698cb94e3
commit 2cd1cf9192

View File

@ -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