Index: content/renderer/android/email_detector.cc |
diff --git a/content/renderer/android/email_detector.cc b/content/renderer/android/email_detector.cc |
index 1c335ee117b243234658905f8d8351283057d4ff..9508679badab3f5e5370a40f2bc2c9b5098f55b7 100644 |
--- a/content/renderer/android/email_detector.cc |
+++ b/content/renderer/android/email_detector.cc |
@@ -21,7 +21,8 @@ const size_t kMaximumEmailLength = 254; |
// disallowed) in order to avoid false positives. |
// Delimiters are word boundaries to allow punctuation, quote marks etc. around |
// the address. |
-const char kEmailRegex[] = "\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}\\b"; |
+const char kEmailRegex[] = |
+ "\\b[A-Z0-9._%+-]+@[A-Z0-9-]+(\\.[A-Z0-9-]+)*(\\.[A-Z]{2,6})\\b"; |
} // anonymous namespace |