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

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: Incorporated review comments. Created 6 years, 4 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..513c1c0f1ea67884f7a2de391c6a0e8ccf136e88 100644
--- a/components/autofill/core/browser/autofill_regex_constants.cc.utf8
+++ b/components/autofill/core/browser/autofill_regex_constants.cc.utf8
@@ -131,7 +131,7 @@ const char kNameOnCardRe[] =
const char kNameOnCardContextualRe[] =
"name";
const char kCardNumberRe[] =
- "card.?number|card.?#|card.?no|cc.?num|acct.?num"
+ "card.?number.?\\d*|card.?#|card.?no.?\\d*|acct.?num.?\\d*|\\w*part.?\\d{1}|\\w*q.?\\d{1}|cc.?num.?\\d*"
Ilya Sherman 2014/08/07 20:57:25 Why did you add ".?\\d*" to these regexes? It sho
Pritam Nikam 2014/08/08 14:14:34 Done. Restored the original regular expression.
"|nummer" // de-DE
"|credito|numero|número" // es
"|numéro" // fr-FR

Powered by Google App Engine
This is Rietveld 408576698