diff options
author | Paul Westbrook <pwestbro@google.com> | 2010-09-30 14:56:43 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-09-30 14:56:43 -0700 |
commit | a8c3c446ef995680a8c98936cd286846fa1efc64 (patch) | |
tree | b6680c36e606570e5f017e77c3702f8fb1cd1b14 /common/java/com | |
parent | 420b44b8b11ec1c309ea130e69a6876325dbfef9 (diff) | |
parent | b4f5e0e5755938f2be9a2f1a1a6609b018c530ad (diff) | |
download | android_frameworks_ex-a8c3c446ef995680a8c98936cd286846fa1efc64.tar.gz android_frameworks_ex-a8c3c446ef995680a8c98936cd286846fa1efc64.tar.bz2 android_frameworks_ex-a8c3c446ef995680a8c98936cd286846fa1efc64.zip |
am b4f5e0e5: Fixed the Rfc822Validator
Merge commit 'b4f5e0e5755938f2be9a2f1a1a6609b018c530ad'
* commit 'b4f5e0e5755938f2be9a2f1a1a6609b018c530ad':
Fixed the Rfc822Validator
Diffstat (limited to 'common/java/com')
-rw-r--r-- | common/java/com/android/common/Rfc822Validator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/java/com/android/common/Rfc822Validator.java b/common/java/com/android/common/Rfc822Validator.java index 087e425..1b4a268 100644 --- a/common/java/com/android/common/Rfc822Validator.java +++ b/common/java/com/android/common/Rfc822Validator.java @@ -45,7 +45,7 @@ public class Rfc822Validator implements AutoCompleteTextView.Validator { * ".com", ".fr", etc... */ private static final Pattern EMAIL_ADDRESS_PATTERN = - Pattern.compile("[^\\s@]+@[^\\s@]+\\.[a-zA-z][a-zA-Z][a-zA-Z]*"); + Pattern.compile("[^\\s@]+@([^\\s@\\.]+\\.)+[a-zA-z][a-zA-Z][a-zA-Z]*"); private String mDomain; |