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

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

Issue 381613005: [Autofill] Autofill fails to fill credit card number when split across fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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.utf8
diff --git a/components/autofill/core/browser/autofill_regex_constants.cc.utf8 b/components/autofill/core/browser/autofill_regex_constants.cc.utf8
index d0378dffab7f7d6d3979a1c74f7ecc4a1b2b9e86..e3e9179b2d131656deb0ad10fac2bf427cf94ca4 100644
--- a/components/autofill/core/browser/autofill_regex_constants.cc.utf8
+++ b/components/autofill/core/browser/autofill_regex_constants.cc.utf8
@@ -194,6 +194,14 @@ const char kCardIgnoredRe[] =
"^card";
const char kGiftCardRe[] =
"gift.?card";
+const char kCardNumberPart1Re[] =
+ "card.?number.?1|card.?1|card.?no.?1|cc.?num.?1|cc.?q.?1|acct.?num.?1|quad.?1|q.?1|part.?1";
+const char kCardNumberPart2Re[] =
+ "card.?number.?2|card.?2|card.?no.?2|cc.?num.?2|cc.?q.?2|acct.?num.?2|quad.?2|q.?2|part.?2";
+const char kCardNumberPart3Re[] =
+ "card.?number.?3|card.?3|card.?no.?3|cc.?num.?3|cc.?q.?3|acct.?num.?3|quad.?3|q.?3|part.?3";
+const char kCardNumberPart4Re[] =
+ "card.?number.?4|card.?4|card.?no.?4|cc.?num.?4|cc.?q.?4|acct.?num.?4|quad.?4|q.?4|part.?4";
/////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698