mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-18 11:05:41 +01:00
exp-mon detection
This commit is contained in:
parent
74d9b359a5
commit
2636f38b30
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit 20622db73c5c2a56777944bb06f32a21bf2e763f
|
Subproject commit af43232567fa63911725929d549f2b01927fa243
|
@ -13,7 +13,6 @@ import { AutofillService as AutofillServiceInterface } from './abstractions/auto
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
CipherService,
|
CipherService,
|
||||||
PlatformUtilsService,
|
|
||||||
TokenService,
|
TokenService,
|
||||||
TotpService,
|
TotpService,
|
||||||
} from 'jslib/abstractions';
|
} from 'jslib/abstractions';
|
||||||
@ -443,7 +442,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
'cc-mm', 'cc-m', 'card-mm', 'card-m', 'card-exp-mm', 'cc-exp-mm', 'exp-mm', 'exp-m',
|
'cc-mm', 'cc-m', 'card-mm', 'card-m', 'card-exp-mm', 'cc-exp-mm', 'exp-mm', 'exp-m',
|
||||||
'expire-month', 'expire-mo', 'card-expire-month', 'card-expire-mo', 'mois-validite',
|
'expire-month', 'expire-mo', 'card-expire-month', 'card-expire-mo', 'mois-validite',
|
||||||
'mois-expiration', 'm-validite', 'm-expiration', 'expiry-date-field-month',
|
'mois-expiration', 'm-validite', 'm-expiration', 'expiry-date-field-month',
|
||||||
'expiration-date-month', 'expiration-date-mm'])) {
|
'expiration-date-month', 'expiration-date-mm', 'exp-mon'])) {
|
||||||
fillFields.expMonth = f;
|
fillFields.expMonth = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.expYear && this.isFieldMatch(f[attr],
|
} else if (!fillFields.expYear && this.isFieldMatch(f[attr],
|
||||||
@ -757,7 +756,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
for (let i = 0; i < options.length; i++) {
|
for (let i = 0; i < options.length; i++) {
|
||||||
let option = options[i];
|
let option = options[i];
|
||||||
const checkValueContains = containsOptions == null || containsOptions.indexOf(option) > -1;
|
const checkValueContains = containsOptions == null || containsOptions.indexOf(option) > -1;
|
||||||
option = option.replace(/-/g, '');
|
option = option.toLowerCase().replace(/-/g, '');
|
||||||
if (value === option || (checkValueContains && value.indexOf(option) > -1)) {
|
if (value === option || (checkValueContains && value.indexOf(option) > -1)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user