mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
Fix email pattern
This commit is contained in:
parent
9698cb94e3
commit
2cd1cf9192
@ -53,7 +53,7 @@ public class CreateKeyEmailFragment extends Fragment {
|
|||||||
|
|
||||||
// NOTE: Do not use more complicated pattern like defined in android.util.Patterns.EMAIL_ADDRESS
|
// NOTE: Do not use more complicated pattern like defined in android.util.Patterns.EMAIL_ADDRESS
|
||||||
// EMAIL_ADDRESS fails for mails with umlauts for example
|
// 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
|
* Creates new instance of this fragment
|
||||||
|
Loading…
Reference in New Issue
Block a user