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

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

Issue 1694443004: [Autofill] Add credit card first and last name heuristics predictions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/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 4ece638e64ed86221b6fba32ad8b5c22d5f3de33..12132460ad8aea212a5a0bf9969fd15d6890279c 100644
--- a/components/autofill/core/browser/autofill_regex_constants.cc
+++ b/components/autofill/core/browser/autofill_regex_constants.cc
@@ -136,6 +136,9 @@ const char kNameOnCardRe[] =
"|持卡人姓名"; // zh-TW
const char kNameOnCardContextualRe[] =
"name";
+const char kLastNameOnCardContextualRe[] =
Mathieu 2016/02/23 15:23:03 I wonder if kLastNameRe would do?
sebsg 2016/02/24 18:49:44 Done.
+ "last.*name"
+ "|name.*last";
const char kCardNumberRe[] =
"(?:card|cc|acct).?(?:number|#|no|num)"
"|nummer" // de-DE

Powered by Google App Engine
This is Rietveld 408576698