| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 "|nummer" // de-DE | 141 "|nummer" // de-DE |
| 142 "|credito|numero|número" // es | 142 "|credito|numero|número" // es |
| 143 "|numéro" // fr-FR | 143 "|numéro" // fr-FR |
| 144 "|カード番号" // ja-JP | 144 "|カード番号" // ja-JP |
| 145 "|Номер.*карты" // ru | 145 "|Номер.*карты" // ru |
| 146 "|信用卡号|信用卡号码" // zh-CN | 146 "|信用卡号|信用卡号码" // zh-CN |
| 147 "|信用卡卡號" // zh-TW | 147 "|信用卡卡號" // zh-TW |
| 148 "|카드"; // ko-KR | 148 "|카드"; // ko-KR |
| 149 const char kCardCvcRe[] = | 149 const char kCardCvcRe[] = |
| 150 "verification|card.?identification|security.?code|card.?code" | 150 "verification|card.?identification|security.?code|card.?code" |
| 151 "|security.?number|card.?pin|c-v-v" |
| 151 "|(cvn|cvv|cvc|csc|cvd|cid|ccv)(field)?" | 152 "|(cvn|cvv|cvc|csc|cvd|cid|ccv)(field)?" |
| 152 "|\\bcid\\b"; | 153 "|\\bcid\\b"; |
| 153 | 154 |
| 154 // "Expiration date" is the most common label here, but some pages have | 155 // "Expiration date" is the most common label here, but some pages have |
| 155 // "Expires", "exp. date" or "exp. month" and "exp. year". We also look | 156 // "Expires", "exp. date" or "exp. month" and "exp. year". We also look |
| 156 // for the field names ccmonth and ccyear, which appear on at least 4 of | 157 // for the field names ccmonth and ccyear, which appear on at least 4 of |
| 157 // our test pages. | 158 // our test pages. |
| 158 | 159 |
| 159 // On at least one page (The China Shop2.html) we find only the labels | 160 // On at least one page (The China Shop2.html) we find only the labels |
| 160 // "month" and "year". So for now we match these words directly; we'll | 161 // "month" and "year". So for now we match these words directly; we'll |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 "prefix|exchange" | 292 "prefix|exchange" |
| 292 "|preselection" // fr-FR | 293 "|preselection" // fr-FR |
| 293 "|ddd"; // pt-BR, pt-PT | 294 "|ddd"; // pt-BR, pt-PT |
| 294 const char kPhoneSuffixRe[] = | 295 const char kPhoneSuffixRe[] = |
| 295 "suffix"; | 296 "suffix"; |
| 296 const char kPhoneExtensionRe[] = | 297 const char kPhoneExtensionRe[] = |
| 297 "\\bext|ext\\b|extension" | 298 "\\bext|ext\\b|extension" |
| 298 "|ramal"; // pt-BR, pt-PT | 299 "|ramal"; // pt-BR, pt-PT |
| 299 | 300 |
| 300 } // namespace autofill | 301 } // namespace autofill |
| OLD | NEW |