From 489b19487a07277aef1f41e33f31f5904e0be240 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 5 Sep 2018 19:27:37 +0200 Subject: [PATCH] Add paymentCardExpiration met on Payplug (#711) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- src/services/autofill.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/services/autofill.service.ts b/src/services/autofill.service.ts index e7c37e9361..4eaacef070 100644 --- a/src/services/autofill.service.ts +++ b/src/services/autofill.service.ts @@ -431,8 +431,9 @@ export default class AutofillService implements AutofillServiceInterface { } else if (!fillFields.exp && this.isFieldMatch(f[attr], ['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'])) { + 'mm-yyyy', 'yy-mm', 'yyyy-mm', 'expiration-date', 'payment-card-expiration'], + ['mm-yy', 'mm-yyyy', 'yy-mm', 'yyyy-mm', 'expiration-date', + 'payment-card-expiration'])) { fillFields.exp = f; break; } else if (!fillFields.expMonth && this.isFieldMatch(f[attr],