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

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

Issue 1808593003: [Autofill] Add regex for phone field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « chrome/test/data/autofill/heuristics/output/145_hal-india.com.out ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_regex_constants.cc
diff --git a/components/autofill/core/browser/autofill_regex_constants.cc b/components/autofill/core/browser/autofill_regex_constants.cc
index bd97024277254c17f7b99a2bf1b008ff336aa0e4..d2e2421530a6921d4df1bed226a4ea3425309fbc 100644
--- a/components/autofill/core/browser/autofill_regex_constants.cc
+++ b/components/autofill/core/browser/autofill_regex_constants.cc
@@ -267,14 +267,14 @@ const char kLastNameRe[] =
// phone_field.cc
/////////////////////////////////////////////////////////////////////////////
const char kPhoneRe[] =
- "phone|mobile"
- "|telefonnummer" // de-DE
- "|telefono|teléfono" // es
- "|telfixe" // fr-FR
- "|電話" // ja-JP
- "|telefone|telemovel" // pt-BR, pt-PT
- "|телефон" // ru
- "|电话" // zh-CN
+ "phone|mobile|contact.?number"
+ "|telefonnummer" // de-DE
+ "|telefono|teléfono" // es
+ "|telfixe" // fr-FR
+ "|電話" // ja-JP
+ "|telefone|telemovel" // pt-BR, pt-PT
+ "|телефон" // ru
+ "|电话" // zh-CN
"|(?:전화|핸드폰|휴대폰|휴대전화)(?:.?번호)?"; // ko-KR
const char kCountryCodeRe[] =
"country.*code|ccode|_cc";
« no previous file with comments | « chrome/test/data/autofill/heuristics/output/145_hal-india.com.out ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698