mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 18:23:31 +00:00
Move middle name fieldnames to Identity constants
This commit is contained in:
@@ -610,7 +610,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
fillFields.firstName = f;
|
||||
break;
|
||||
} else if (!fillFields.middleName && this.isFieldMatch(f[attr],
|
||||
['m-name', 'middle-name', 'additional-name', 'middle-initial', 'middle-n', 'middle-i'])) {
|
||||
IdentityAutoFillConstants.MiddlenameFieldNames)) {
|
||||
fillFields.middleName = f;
|
||||
break;
|
||||
} else if (!fillFields.lastName && this.isFieldMatch(f[attr],
|
||||
|
||||
@@ -200,6 +200,15 @@ export class IdentityAutoFillConstants {
|
||||
"vorname",
|
||||
];
|
||||
|
||||
static readonly MiddlenameFieldNames: string[] = [
|
||||
"m-name",
|
||||
"middle-name",
|
||||
"additional-name",
|
||||
"middle-initial",
|
||||
"middle-n",
|
||||
"middle-i",
|
||||
];
|
||||
|
||||
static readonly LastnameFieldNames: string[] = [
|
||||
// English
|
||||
"l-name",
|
||||
|
||||
Reference in New Issue
Block a user