Move address1 fieldnames to Identity constants
This commit is contained in:
parent
d25d532184
commit
b2a3cd7feb
|
@ -631,7 +631,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||
fillFields.address = f;
|
||||
break;
|
||||
} else if (!fillFields.address1 && this.isFieldMatch(f[attr],
|
||||
['address-1', 'address-line-1', 'addr-1', 'street-1'])) {
|
||||
IdentityAutoFillConstants.Address1FieldNames)) {
|
||||
fillFields.address1 = f;
|
||||
break;
|
||||
} else if (!fillFields.address2 && this.isFieldMatch(f[attr],
|
||||
|
|
|
@ -227,6 +227,13 @@ export class IdentityAutoFillConstants {
|
|||
|
||||
static readonly EmailFieldNames: string[] = ["e-mail", "email-address"];
|
||||
|
||||
static readonly Address1FieldNames: string[] = [
|
||||
"address-1",
|
||||
"address-line-1",
|
||||
"addr-1",
|
||||
"street-1",
|
||||
];
|
||||
|
||||
static readonly IsoCountries: { [id: string]: string } = {
|
||||
afghanistan: "AF",
|
||||
"aland islands": "AX",
|
||||
|
|
Loading…
Reference in New Issue