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

Side by Side Diff: components/autofill/core/browser/autofill_regex_constants.cc

Issue 2151593002: Fix regex for last name field in Autofill. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improve the test case for Korean full name field detection. Created 4 years, 5 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
« no previous file with comments | « chrome/test/data/autofill/heuristics/output/007_i18n_ko.out ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 "|apellido.?materno|lastlastname"; // es 256 "|apellido.?materno|lastlastname"; // es
257 const char kLastNameRe[] = 257 const char kLastNameRe[] =
258 "last.*name|lname|surname|last$|secondname|family.*name" 258 "last.*name|lname|surname|last$|secondname|family.*name"
259 "|nachname" // de-DE 259 "|nachname" // de-DE
260 "|apellido" // es 260 "|apellido" // es
261 "|famille|^nom" // fr-FR 261 "|famille|^nom" // fr-FR
262 "|cognome" // it-IT 262 "|cognome" // it-IT
263 "|姓" // ja-JP 263 "|姓" // ja-JP
264 "|morada|apelidos|surename|sobrenome" // pt-BR, pt-PT 264 "|morada|apelidos|surename|sobrenome" // pt-BR, pt-PT
265 "|Фамилия" // ru 265 "|Фамилия" // ru
266 "|[^명]?"; // ko-KR 266 "|\\b성(?:[^명]|\\b)"; // ko-KR
267 267
268 ///////////////////////////////////////////////////////////////////////////// 268 /////////////////////////////////////////////////////////////////////////////
269 // phone_field.cc 269 // phone_field.cc
270 ///////////////////////////////////////////////////////////////////////////// 270 /////////////////////////////////////////////////////////////////////////////
271 const char kPhoneRe[] = 271 const char kPhoneRe[] =
272 "phone|mobile|contact.?number" 272 "phone|mobile|contact.?number"
273 "|telefonnummer" // de-DE 273 "|telefonnummer" // de-DE
274 "|telefono|teléfono" // es 274 "|telefono|teléfono" // es
275 "|telfixe" // fr-FR 275 "|telfixe" // fr-FR
276 "|電話" // ja-JP 276 "|電話" // ja-JP
(...skipping 16 matching lines...) Expand all
293 "prefix|exchange" 293 "prefix|exchange"
294 "|preselection" // fr-FR 294 "|preselection" // fr-FR
295 "|ddd"; // pt-BR, pt-PT 295 "|ddd"; // pt-BR, pt-PT
296 const char kPhoneSuffixRe[] = 296 const char kPhoneSuffixRe[] =
297 "suffix"; 297 "suffix";
298 const char kPhoneExtensionRe[] = 298 const char kPhoneExtensionRe[] =
299 "\\bext|ext\\b|extension" 299 "\\bext|ext\\b|extension"
300 "|ramal"; // pt-BR, pt-PT 300 "|ramal"; // pt-BR, pt-PT
301 301
302 } // namespace autofill 302 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/test/data/autofill/heuristics/output/007_i18n_ko.out ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698