Commit 24b2fe26 authored by Matthias Körber's avatar Matthias Körber Committed by Commit Bot

[Autofill][Slimshady] Removed ES last name tokens from middle expression

Currently, "Apellido Materno" is matched as a middle name although it
is actually the second last name.

Change-Id: I16086145cc46e29370f313b01bae8bb6c3785203
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2351917Reviewed-by: default avatarChristoph Schwering <schwering@google.com>
Commit-Queue: Matthias Körber <koerber@google.com>
Cr-Commit-Position: refs/heads/master@{#797615}
parent 77ec92aa
......@@ -317,9 +317,7 @@ const char kFirstNameRe[] =
"|(\\b|_|\\*)(isim|ad|ad(i|ı|iniz|ınız)?)(\\b|_|\\*)" // tr
"|नाम"; // hi
const char kMiddleInitialRe[] = "middle.*initial|m\\.i\\.|mi$|\\bmi\\b";
const char kMiddleNameRe[] =
"middle.*name|mname|middle$"
"|apellido.?materno|lastlastname"; // es
const char kMiddleNameRe[] = "middle.*name|mname|middle$";
const char kLastNameRe[] =
"last.*name|lname|surname(?!\\d)|last$|secondname|family.*name"
"|nachname" // de-DE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment