Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: components/autofill/browser/autofill_regex_constants.cc.utf8

Issue 13888008: Fix for forms with more than three address lines getting partially Autofilled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/autofill/browser/autofill_regex_constants.cc.utf8
diff --git a/components/autofill/browser/autofill_regex_constants.cc.utf8 b/components/autofill/browser/autofill_regex_constants.cc.utf8
index 53aa9d5677c065b6b2562f11dcf40e33ed2a6790..d33f74bfa28d1e37cd54ae14afae679a077dea4a 100644
--- a/components/autofill/browser/autofill_regex_constants.cc.utf8
+++ b/components/autofill/browser/autofill_regex_constants.cc.utf8
@@ -64,11 +64,11 @@ const char kAddressLine2LabelRe[] =
"|indirizzo" // it-IT
"|地址" // zh-CN
"|주소"; // ko-KR
-const char kAddressLine3Re[] =
- "address.*line3|address3|addr3|street|line3"
+const char kAddressLinesExtraRe[] =
+ "address.*line[3-9]|address[3-9]|addr[3-9]|street|line[3-9]"
"|municipio" // es
"|batiment|residence" // fr-FR
- "|indirizzo3"; // it-IT
+ "|indirizzo[3-9]"; // it-IT
const char kCountryRe[] =
"country|countries|location"
"|país|pais" // es

Powered by Google App Engine
This is Rietveld 408576698