1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

Add paymentCardExpiration met on Payplug (#711)

* Add paymentCardExpiration met on Payplug

This commit intends to add support for `paymentCardExpiration`, I'm not sure anymore if that syntax will work 🤔

* Add payment-card-expiration to contains array
This commit is contained in:
Gabriel Augendre 2018-09-05 19:27:37 +02:00 committed by Kyle Spearrin
parent e71511258d
commit 489b19487a

View File

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