From 21963cb9d3429218b94a73d9d42d25f48bcfcd62 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 13 Dec 2017 08:51:32 -0500 Subject: [PATCH] add support for "post-code" autofilling --- src/services/autofill.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/autofill.service.ts b/src/services/autofill.service.ts index e0c1ec46e7..56880dc435 100644 --- a/src/services/autofill.service.ts +++ b/src/services/autofill.service.ts @@ -544,8 +544,8 @@ export default class AutofillService { ['address-3', 'address-line-3', 'addr-3'])) { fillFields.address3 = f; } else if (!fillFields.postalCode && this.isFieldMatch(f[attr], - ['postal', 'zip', 'zip2', 'zip-code', 'postal-code', 'address-zip', 'address-postal', - 'address-code', 'address-postal-code', 'address-zip-code'])) { + ['postal', 'zip', 'zip2', 'zip-code', 'postal-code', 'post-code', 'address-zip', + 'address-postal', 'address-code', 'address-postal-code', 'address-zip-code'])) { fillFields.postalCode = f; } else if (!fillFields.city && this.isFieldMatch(f[attr], ['city', 'town', 'address-level-2', 'address-city', 'address-town'])) {