diff options
author | kenjitoyama <kenjitoyama@chromium.org> | 2016-02-12 08:06:20 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-12 16:07:51 +0000 |
commit | 4fe11966b2367e7e161e1ee185a4047a60a0ec3d (patch) | |
tree | f273e6f40cbd1de01259d1aeb0ea7de06fa2f9df /components | |
parent | 16f4afc48c4faf13bb4cf012f4d1cf3f50452840 (diff) | |
download | chromium_src-4fe11966b2367e7e161e1ee185a4047a60a0ec3d.zip chromium_src-4fe11966b2367e7e161e1ee185a4047a60a0ec3d.tar.gz chromium_src-4fe11966b2367e7e161e1ee185a4047a60a0ec3d.tar.bz2 |
[Autofill] Fix CVS.com Credit Card checkout.
cvs.com appends Credit Card fields with "field" (i.e. "ccfield", "expfield" and
"cvvfield"). This CL adds more regex rules to also match them.
BUG=586252
TESTED=FormStructureBrowserTest
Review URL: https://codereview.chromium.org/1692003002
Cr-Commit-Position: refs/heads/master@{#375188}
Diffstat (limited to 'components')
-rw-r--r-- | components/autofill/core/browser/autofill_regex_constants.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/autofill/core/browser/autofill_regex_constants.cc b/components/autofill/core/browser/autofill_regex_constants.cc index facf0c6..db5456f 100644 --- a/components/autofill/core/browser/autofill_regex_constants.cc +++ b/components/autofill/core/browser/autofill_regex_constants.cc @@ -137,7 +137,7 @@ const char kNameOnCardRe[] = const char kNameOnCardContextualRe[] = "name"; const char kCardNumberRe[] = - "(add)?(?:card|cc|acct).?(?:number|#|no|num)" + "(add)?(?:card|cc|acct).?(?:number|#|no|num|field)" "|nummer" // de-DE "|credito|numero|número" // es "|numéro" // fr-FR @@ -148,7 +148,7 @@ const char kCardNumberRe[] = "|카드"; // ko-KR const char kCardCvcRe[] = "verification|card.?identification|security.?code|card.?code" - "|cvn|cvv|cvc|csc|cvd|cid|ccv" + "|(cvn|cvv|cvc|csc|cvd|cid|ccv)(field)?" "|\\bcid\\b"; // "Expiration date" is the most common label here, but some pages have @@ -189,7 +189,7 @@ const char kExpirationDate2DigitYearRe[] = const char kExpirationDate4DigitYearRe[] = "^mm\\s*[-/]\\syyyy$"; const char kExpirationDateRe[] = - "expir|exp.*date" + "expir|exp.*date|^expfield$" "|gueltig|gültig" // de-DE "|fecha" // es "|date.*exp" // fr-FR |