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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
117 "|estado|provincia" // pt-BR, pt-PT | 117 "|estado|provincia" // pt-BR, pt-PT |
118 "|область" // ru | 118 "|область" // ru |
119 "|省" // zh-CN | 119 "|省" // zh-CN |
120 "|地區" // zh-TW | 120 "|地區" // zh-TW |
121 "|^시[·・]?도"; // ko-KR | 121 "|^시[·・]?도"; // ko-KR |
122 | 122 |
123 ///////////////////////////////////////////////////////////////////////////// | 123 ///////////////////////////////////////////////////////////////////////////// |
124 // credit_card_field.cc | 124 // credit_card_field.cc |
125 ///////////////////////////////////////////////////////////////////////////// | 125 ///////////////////////////////////////////////////////////////////////////// |
126 const char kNameOnCardRe[] = | 126 const char kNameOnCardRe[] = |
127 "card.?(?:holder|owner)|name.*\\bon\\b.*card" | 127 "card.?(?:holder|owner)|name.*\\bon\\b.*card|nameoncard" |
Mathieu
2016/02/24 21:58:26
modify the second token to name.*(\\b)?on(\\b)?.*?
sebsg
2016/03/01 16:32:53
Nice, I think I need to learn more about regexes!
| |
128 "|(?:card|cc).?name|cc.?full.?name" | 128 "|(?:card|cc).?name|cc.?full.?name" |
129 "|karteninhaber" // de-DE | 129 "|karteninhaber" // de-DE |
130 "|nombre.*tarjeta" // es | 130 "|nombre.*tarjeta" // es |
131 "|nom.*carte" // fr-FR | 131 "|nom.*carte" // fr-FR |
132 "|nome.*cart" // it-IT | 132 "|nome.*cart" // it-IT |
133 "|名前" // ja-JP | 133 "|名前" // ja-JP |
134 "|Имя.*карты" // ru | 134 "|Имя.*карты" // ru |
135 "|信用卡开户名|开户名|持卡人姓名" // zh-CN | 135 "|信用卡开户名|开户名|持卡人姓名" // zh-CN |
136 "|持卡人姓名"; // zh-TW | 136 "|持卡人姓名"; // zh-TW |
137 const char kNameOnCardContextualRe[] = | 137 const char kNameOnCardContextualRe[] = |
138 "name"; | 138 "name"; |
139 const char kCardNumberRe[] = | 139 const char kCardNumberRe[] = |
140 "(?:card|cc|acct).?(?:number|#|no|num)" | 140 "(?:card|cc|acct).?(?:number|#|no|num)" |
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 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
291 "prefix|exchange" | 291 "prefix|exchange" |
292 "|preselection" // fr-FR | 292 "|preselection" // fr-FR |
293 "|ddd"; // pt-BR, pt-PT | 293 "|ddd"; // pt-BR, pt-PT |
294 const char kPhoneSuffixRe[] = | 294 const char kPhoneSuffixRe[] = |
295 "suffix"; | 295 "suffix"; |
296 const char kPhoneExtensionRe[] = | 296 const char kPhoneExtensionRe[] = |
297 "\\bext|ext\\b|extension" | 297 "\\bext|ext\\b|extension" |
298 "|ramal"; // pt-BR, pt-PT | 298 "|ramal"; // pt-BR, pt-PT |
299 | 299 |
300 } // namespace autofill | 300 } // namespace autofill |
OLD | NEW |