| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |