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

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: Patch2 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..9ad52f13330c92494293d80b01124fc2369cf9a4 100644
--- a/components/autofill/core/browser/autofill_regex_constants.cc
+++ b/components/autofill/core/browser/autofill_regex_constants.cc
@@ -124,16 +124,16 @@ const char kStateRe[] =
// credit_card_field.cc
/////////////////////////////////////////////////////////////////////////////
const char kNameOnCardRe[] =
- "card.?(?:holder|owner)|name.*\\bon\\b.*card"
+ "card.?(?:holder|owner)|name.*\\bon\\b.*card|nameoncard"
Mathieu 2016/02/24 21:58:26 modify the second token to name.*(\\b)?on(\\b)?.*?
sebsg 2016/03/01 16:32:53 Nice, I think I need to learn more about regexes!
"|(?:card|cc).?name|cc.?full.?name"
- "|karteninhaber" // de-DE
- "|nombre.*tarjeta" // es
- "|nom.*carte" // fr-FR
- "|nome.*cart" // it-IT
- "|名前" // ja-JP
- "|Имя.*карты" // ru
+ "|karteninhaber" // de-DE
+ "|nombre.*tarjeta" // es
+ "|nom.*carte" // fr-FR
+ "|nome.*cart" // it-IT
+ "|名前" // ja-JP
+ "|Имя.*карты" // ru
"|信用卡开户名|开户名|持卡人姓名" // zh-CN
- "|持卡人姓名"; // zh-TW
+ "|持卡人姓名"; // zh-TW
const char kNameOnCardContextualRe[] =
"name";
const char kCardNumberRe[] =

Powered by Google App Engine
This is Rietveld 408576698