Add card-expiry and expiry, found on IKEA website (#707)

This commit is contained in:
Gabriel Augendre 2018-08-29 19:39:19 +02:00 committed by Kyle Spearrin
parent e1c2fa3dca
commit 1ad45c190e
1 changed files with 3 additions and 2 deletions

View File

@ -429,8 +429,9 @@ export default class AutofillService implements AutofillServiceInterface {
fillFields.number = f;
break;
} else if (!fillFields.exp && this.isFieldMatch(f[attr],
['cc-exp', 'card-exp', 'cc-expiration', 'card-expiration', 'cc-ex', 'card-ex', 'card-expire',
'validite', 'expiration', 'mm-yy', 'mm-yyyy', 'yy-mm', 'yyyy-mm', 'expiration-date'],
['cc-exp', 'card-exp', 'cc-expiration', 'card-expiration', 'cc-ex', 'card-ex',
'card-expire', 'card-expiry', 'validite', 'expiration', 'expiry', 'mm-yy',
'mm-yyyy', 'yy-mm', 'yyyy-mm', 'expiration-date'],
['mm-yy', 'mm-yyyy', 'yy-mm', 'yyyy-mm', 'expiration-date'])) {
fillFields.exp = f;
break;