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

Side by Side Diff: components/autofill/core/browser/autofill_regex_constants.cc.utf8

Issue 804603005: Autofill: Recognize the CVC field on Apple's checkout page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « chrome/test/data/autofill/heuristics/output/23_checkout_m_apple.com.out ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains UTF8 strings that we want as char arrays. To avoid 5 // This file contains UTF8 strings that we want as char arrays. To avoid
6 // different compilers, we use a script to convert the UTF8 strings into 6 // different compilers, we use a script to convert the UTF8 strings into
7 // numeric literals (\x##). 7 // numeric literals (\x##).
8 8
9 #include "components/autofill/core/browser/autofill_regex_constants.h" 9 #include "components/autofill/core/browser/autofill_regex_constants.h"
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 "(card|cc|acct).?(number|#|no|num)" 136 "(card|cc|acct).?(number|#|no|num)"
137 "|nummer" // de-DE 137 "|nummer" // de-DE
138 "|credito|numero|número" // es 138 "|credito|numero|número" // es
139 "|numéro" // fr-FR 139 "|numéro" // fr-FR
140 "|カード番号" // ja-JP 140 "|カード番号" // ja-JP
141 "|Номер.*карты" // ru 141 "|Номер.*карты" // ru
142 "|信用卡号|信用卡号码" // zh-CN 142 "|信用卡号|信用卡号码" // zh-CN
143 "|信用卡卡號" // zh-TW 143 "|信用卡卡號" // zh-TW
144 "|카드"; // ko-KR 144 "|카드"; // ko-KR
145 const char kCardCvcRe[] = 145 const char kCardCvcRe[] =
146 "verification|card identification|security code|cvn|cvv|cvc|csc|\\bcid\\b"; 146 "verification|card identification|security code|card code|cvn|cvv|cvc|csc"
147 "|\\bcid\\b";
147 const char kCardTypeRe[] = 148 const char kCardTypeRe[] =
148 "(card|cc|payment).?type|payment.?method"; 149 "(card|cc|payment).?type|payment.?method";
149 150
150 // "Expiration date" is the most common label here, but some pages have 151 // "Expiration date" is the most common label here, but some pages have
151 // "Expires", "exp. date" or "exp. month" and "exp. year". We also look 152 // "Expires", "exp. date" or "exp. month" and "exp. year". We also look
152 // for the field names ccmonth and ccyear, which appear on at least 4 of 153 // for the field names ccmonth and ccyear, which appear on at least 4 of
153 // our test pages. 154 // our test pages.
154 155
155 // On at least one page (The China Shop2.html) we find only the labels 156 // On at least one page (The China Shop2.html) we find only the labels
156 // "month" and "year". So for now we match these words directly; we'll 157 // "month" and "year". So for now we match these words directly; we'll
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 "prefix|exchange" 285 "prefix|exchange"
285 "|preselection" // fr-FR 286 "|preselection" // fr-FR
286 "|ddd"; // pt-BR, pt-PT 287 "|ddd"; // pt-BR, pt-PT
287 const char kPhoneSuffixRe[] = 288 const char kPhoneSuffixRe[] =
288 "suffix"; 289 "suffix";
289 const char kPhoneExtensionRe[] = 290 const char kPhoneExtensionRe[] =
290 "\\bext|ext\\b|extension" 291 "\\bext|ext\\b|extension"
291 "|ramal"; // pt-BR, pt-PT 292 "|ramal"; // pt-BR, pt-PT
292 293
293 } // namespace autofill 294 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/test/data/autofill/heuristics/output/23_checkout_m_apple.com.out ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698