mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-10 01:28:36 +02:00
add street to address detection
This commit is contained in:
parent
047547169a
commit
58a267243a
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit bf260819bb303d125379c92e712f762fe17f043c
|
Subproject commit 43ac05d1fc89a5132bd2eb632a85e608e2548252
|
@ -610,19 +610,19 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
fillFields.email = f;
|
fillFields.email = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.address && this.isFieldMatch(f[attr],
|
} else if (!fillFields.address && this.isFieldMatch(f[attr],
|
||||||
['address', 'street-address', 'addr'], [])) {
|
['address', 'street-address', 'addr', 'street'], [])) {
|
||||||
fillFields.address = f;
|
fillFields.address = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.address1 && this.isFieldMatch(f[attr],
|
} else if (!fillFields.address1 && this.isFieldMatch(f[attr],
|
||||||
['address-1', 'address-line-1', 'addr-1'])) {
|
['address-1', 'address-line-1', 'addr-1', 'street-1'])) {
|
||||||
fillFields.address1 = f;
|
fillFields.address1 = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.address2 && this.isFieldMatch(f[attr],
|
} else if (!fillFields.address2 && this.isFieldMatch(f[attr],
|
||||||
['address-2', 'address-line-2', 'addr-2'])) {
|
['address-2', 'address-line-2', 'addr-2', 'street-2'])) {
|
||||||
fillFields.address2 = f;
|
fillFields.address2 = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.address3 && this.isFieldMatch(f[attr],
|
} else if (!fillFields.address3 && this.isFieldMatch(f[attr],
|
||||||
['address-3', 'address-line-3', 'addr-3'])) {
|
['address-3', 'address-line-3', 'addr-3', 'street-3'])) {
|
||||||
fillFields.address3 = f;
|
fillFields.address3 = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.postalCode && this.isFieldMatch(f[attr],
|
} else if (!fillFields.postalCode && this.isFieldMatch(f[attr],
|
||||||
|
Loading…
Reference in New Issue
Block a user