| Index: components/autofill/core/browser/autofill_regex_constants.cc.utf8
|
| diff --git a/components/autofill/core/browser/autofill_regex_constants.cc.utf8 b/components/autofill/core/browser/autofill_regex_constants.cc.utf8
|
| index ac1d119e91fa7199167b9b6972546f692d53d199..a4c459433a71f4f7b4fe5f3c78b019fa5fec9556 100644
|
| --- a/components/autofill/core/browser/autofill_regex_constants.cc.utf8
|
| +++ b/components/autofill/core/browser/autofill_regex_constants.cc.utf8
|
| @@ -182,10 +182,11 @@ const char kExpirationYearRe[] =
|
| "|Срок действия карты" // ru
|
| "|年|有效期"; // zh-CN
|
|
|
| -// This regex is a little bit nasty, but it is simply requiring exactly two
|
| -// adjacent y's.
|
| +// The "yy" portion of the regex is just looking for two adjacent y's.
|
| const char kExpirationDate2DigitYearRe[] =
|
| - "exp.*date.*[^y]yy([^y]|$)";
|
| + "(exp.*date.*|mm\\s*[-/]\\s*)[^y]yy([^y]|$)";
|
| +const char kExpirationDate4DigitYearRe[] =
|
| + "^mm\\s*[-/]\\syyyy$";
|
| const char kExpirationDateRe[] =
|
| "expir|exp.*date"
|
| "|gueltig|gültig" // de-DE
|
|
|