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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 "|nombre.*tarjeta" // es | 124 "|nombre.*tarjeta" // es |
125 "|nom.*carte" // fr-FR | 125 "|nom.*carte" // fr-FR |
126 "|nome.*cart" // it-IT | 126 "|nome.*cart" // it-IT |
127 "|名前" // ja-JP | 127 "|名前" // ja-JP |
128 "|Имя.*карты" // ru | 128 "|Имя.*карты" // ru |
129 "|信用卡开户名|开户名|持卡人姓名" // zh-CN | 129 "|信用卡开户名|开户名|持卡人姓名" // zh-CN |
130 "|持卡人姓名"; // zh-TW | 130 "|持卡人姓名"; // zh-TW |
131 const char kNameOnCardContextualRe[] = | 131 const char kNameOnCardContextualRe[] = |
132 "name"; | 132 "name"; |
133 const char kCardNumberRe[] = | 133 const char kCardNumberRe[] = |
134 "card.?number|card.?#|card.?no|cc.?num|acct.?num" | 134 "card.?number.?\\d*|card.?#|card.?no.?\\d*|acct.?num.?\\d*|\\w*part.?\\d{1}| \\w*q.?\\d{1}|cc.?num.?\\d*" |
Ilya Sherman
2014/08/07 20:57:25
Why did you add ".?\\d*" to these regexes? It sho
Pritam Nikam
2014/08/08 14:14:34
Done.
Restored the original regular expression.
| |
135 "|nummer" // de-DE | 135 "|nummer" // de-DE |
136 "|credito|numero|número" // es | 136 "|credito|numero|número" // es |
137 "|numéro" // fr-FR | 137 "|numéro" // fr-FR |
138 "|カード番号" // ja-JP | 138 "|カード番号" // ja-JP |
139 "|Номер.*карты" // ru | 139 "|Номер.*карты" // ru |
140 "|信用卡号|信用卡号码" // zh-CN | 140 "|信用卡号|信用卡号码" // zh-CN |
141 "|信用卡卡號" // zh-TW | 141 "|信用卡卡號" // zh-TW |
142 "|카드"; // ko-KR | 142 "|카드"; // ko-KR |
143 const char kCardCvcRe[] = | 143 const char kCardCvcRe[] = |
144 "verification|card identification|security code|cvn|cvv|cvc|csc|\\bcid\\b"; | 144 "verification|card identification|security code|cvn|cvv|cvc|csc|\\bcid\\b"; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
282 "prefix|exchange" | 282 "prefix|exchange" |
283 "|preselection" // fr-FR | 283 "|preselection" // fr-FR |
284 "|ddd"; // pt-BR, pt-PT | 284 "|ddd"; // pt-BR, pt-PT |
285 const char kPhoneSuffixRe[] = | 285 const char kPhoneSuffixRe[] = |
286 "suffix"; | 286 "suffix"; |
287 const char kPhoneExtensionRe[] = | 287 const char kPhoneExtensionRe[] = |
288 "\\bext|ext\\b|extension" | 288 "\\bext|ext\\b|extension" |
289 "|ramal"; // pt-BR, pt-PT | 289 "|ramal"; // pt-BR, pt-PT |
290 | 290 |
291 } // namespace autofill | 291 } // namespace autofill |
OLD | NEW |