1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-17 20:04:06 +01:00

add support for "post-code" autofilling

This commit is contained in:
Kyle Spearrin 2017-12-13 08:51:32 -05:00
parent 39eb015d3e
commit 21963cb9d3

View File

@ -544,8 +544,8 @@ export default class AutofillService {
['address-3', 'address-line-3', 'addr-3'])) { ['address-3', 'address-line-3', 'addr-3'])) {
fillFields.address3 = f; fillFields.address3 = f;
} else if (!fillFields.postalCode && this.isFieldMatch(f[attr], } else if (!fillFields.postalCode && this.isFieldMatch(f[attr],
['postal', 'zip', 'zip2', 'zip-code', 'postal-code', 'address-zip', 'address-postal', ['postal', 'zip', 'zip2', 'zip-code', 'postal-code', 'post-code', 'address-zip',
'address-code', 'address-postal-code', 'address-zip-code'])) { 'address-postal', 'address-code', 'address-postal-code', 'address-zip-code'])) {
fillFields.postalCode = f; fillFields.postalCode = f;
} else if (!fillFields.city && this.isFieldMatch(f[attr], } else if (!fillFields.city && this.isFieldMatch(f[attr],
['city', 'town', 'address-level-2', 'address-city', 'address-town'])) { ['city', 'town', 'address-level-2', 'address-city', 'address-town'])) {