Add some german input field names
This commit is contained in:
parent
3629c2c0d5
commit
c209fd72de
|
@ -37,6 +37,20 @@ const UsernameFieldNames: string[] = [
|
|||
// German
|
||||
'benutzername', 'benutzer name', 'email adresse', 'e-mail adresse', 'benutzerid', 'benutzer id'];
|
||||
|
||||
const FirstnameFieldNames: string[] = [
|
||||
// English
|
||||
'f-name', 'first-name', 'given-name', 'first-n',
|
||||
// German
|
||||
'vorname'
|
||||
]
|
||||
|
||||
const LastnameFieldNames: string[] = [
|
||||
// English
|
||||
'l-name', 'last-name', 's-name', 'surname', 'family-name', 'family-n', 'last-n',
|
||||
// German
|
||||
'nachname', 'familienname'
|
||||
]
|
||||
|
||||
const ExcludedAutofillTypes: string[] = ['radio', 'checkbox', 'hidden', 'file', 'button', 'image', 'reset', 'search'];
|
||||
|
||||
// Each index represents a language. These three arrays should all be the same length.
|
||||
|
@ -691,7 +705,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||
fillFields.name = f;
|
||||
break;
|
||||
} else if (!fillFields.firstName && this.isFieldMatch(f[attr],
|
||||
['f-name', 'first-name', 'given-name', 'first-n'])) {
|
||||
FirstnameFieldNames)) {
|
||||
fillFields.firstName = f;
|
||||
break;
|
||||
} else if (!fillFields.middleName && this.isFieldMatch(f[attr],
|
||||
|
@ -699,7 +713,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||
fillFields.middleName = f;
|
||||
break;
|
||||
} else if (!fillFields.lastName && this.isFieldMatch(f[attr],
|
||||
['l-name', 'last-name', 's-name', 'surname', 'family-name', 'family-n', 'last-n'])) {
|
||||
LastnameFieldNames)) {
|
||||
fillFields.lastName = f;
|
||||
break;
|
||||
} else if (!fillFields.title && this.isFieldMatch(f[attr],
|
||||
|
|
Loading…
Reference in New Issue