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

Side by Side Diff: chrome/browser/autofill/autofill_regex_constants.cc.utf8

Issue 8052024: Autofill: Ignore gift cards when filling credit card info (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/autofill/autofill_regex_constants.h" 9 #include "chrome/browser/autofill/autofill_regex_constants.h"
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // our test pages. 152 // our test pages.
153 153
154 // On at least one page (The China Shop2.html) we find only the labels 154 // On at least one page (The China Shop2.html) we find only the labels
155 // "month" and "year". So for now we match these words directly; we'll 155 // "month" and "year". So for now we match these words directly; we'll
156 // see if this turns out to be too general. 156 // see if this turns out to be too general.
157 157
158 // Toolbar Bug 51451: indeed, simply matching "month" is too general for 158 // Toolbar Bug 51451: indeed, simply matching "month" is too general for
159 // https://rps.fidelity.com/ftgw/rps/RtlCust/CreatePIN/Init. 159 // https://rps.fidelity.com/ftgw/rps/RtlCust/CreatePIN/Init.
160 // Instead, we match only words beginning with "month". 160 // Instead, we match only words beginning with "month".
161 const char kExpirationMonthRe[] = 161 const char kExpirationMonthRe[] =
162 "expir|exp.*mo|exp.*date|ccmonth" 162 "expir|exp.*mo|exp.*date|ccmonth|cardmonth"
163 "|gueltig|gültig|monat" // de-DE 163 "|gueltig|gültig|monat" // de-DE
164 "|fecha" // es 164 "|fecha" // es
165 "|date.*exp" // fr-FR 165 "|date.*exp" // fr-FR
166 "|scadenza" // it-IT 166 "|scadenza" // it-IT
167 "|有効期限" // ja-JP 167 "|有効期限" // ja-JP
168 "|validade" // pt-BR, pt-PT 168 "|validade" // pt-BR, pt-PT
169 "|Срок действия карты" // ru 169 "|Срок действия карты" // ru
170 "|月"; // zh-CN 170 "|月"; // zh-CN
171 const char kExpirationYearRe[] = 171 const char kExpirationYearRe[] =
172 "exp|^/|year" 172 "exp|^/|year"
(...skipping 13 matching lines...) Expand all
186 "expir|exp.*date" 186 "expir|exp.*date"
187 "|gueltig|gültig" // de-DE 187 "|gueltig|gültig" // de-DE
188 "|fecha" // es 188 "|fecha" // es
189 "|date.*exp" // fr-FR 189 "|date.*exp" // fr-FR
190 "|scadenza" // it-IT 190 "|scadenza" // it-IT
191 "|有効期限" // ja-JP 191 "|有効期限" // ja-JP
192 "|validade" // pt-BR, pt-PT 192 "|validade" // pt-BR, pt-PT
193 "|Срок действия карты"; // ru 193 "|Срок действия карты"; // ru
194 const char kCardIgnoredRe[] = 194 const char kCardIgnoredRe[] =
195 "^card"; 195 "^card";
196 const char kGiftCardRe[] =
197 "gift.?card";
196 198
197 199
198 ///////////////////////////////////////////////////////////////////////////// 200 /////////////////////////////////////////////////////////////////////////////
199 // email_field.cc 201 // email_field.cc
200 ///////////////////////////////////////////////////////////////////////////// 202 /////////////////////////////////////////////////////////////////////////////
201 const char kEmailRe[] = 203 const char kEmailRe[] =
202 "e.?mail" 204 "e.?mail"
203 "|メールアドレス" // ja-JP 205 "|メールアドレス" // ja-JP
204 "|Электронной.?Почты" // ru 206 "|Электронной.?Почты" // ru
205 "|邮件|邮箱" // zh-CN 207 "|邮件|邮箱" // zh-CN
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 "prefix|exchange" 290 "prefix|exchange"
289 "|preselection" // fr-FR 291 "|preselection" // fr-FR
290 "|ddd"; // pt-BR, pt-PT 292 "|ddd"; // pt-BR, pt-PT
291 const char kPhoneSuffixRe[] = 293 const char kPhoneSuffixRe[] =
292 "suffix"; 294 "suffix";
293 const char kPhoneExtensionRe[] = 295 const char kPhoneExtensionRe[] =
294 "\\bext|ext\\b|extension" 296 "\\bext|ext\\b|extension"
295 "|ramal"; // pt-BR, pt-PT 297 "|ramal"; // pt-BR, pt-PT
296 298
297 } // namespace autofill 299 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_regex_constants.h ('k') | chrome/browser/autofill/credit_card_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698