Move address3 fieldnames to Identity constants

This commit is contained in:
Daniel James Smith 2022-01-02 14:47:12 +01:00
parent e12b9ffa67
commit a880cf32e6
No known key found for this signature in database
GPG Key ID: 03E4BD365FF06726
2 changed files with 8 additions and 1 deletions

View File

@ -639,7 +639,7 @@ export default class AutofillService implements AutofillServiceInterface {
fillFields.address2 = f;
break;
} else if (!fillFields.address3 && this.isFieldMatch(f[attr],
['address-3', 'address-line-3', 'addr-3', 'street-3'])) {
IdentityAutoFillConstants.Address3FieldNames)) {
fillFields.address3 = f;
break;
} else if (!fillFields.postalCode && this.isFieldMatch(f[attr],

View File

@ -241,6 +241,13 @@ export class IdentityAutoFillConstants {
"street-2",
];
static readonly Address3FieldNames: string[] = [
"address-3",
"address-line-3",
"addr-3",
"street-3",
];
static readonly IsoCountries: { [id: string]: string } = {
afghanistan: "AF",
"aland islands": "AX",