mirror of
https://github.com/bitwarden/browser
synced 2024-12-28 02:43:04 +01:00
added an escape character to a regex string
This commit is contained in:
parent
a2a994cb4d
commit
64dd14ffc5
@ -904,7 +904,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Removes all whitespace, _ and - characters
|
// Removes all whitespace, _ and - characters
|
||||||
const cleanedValue = value.toLowerCase().replace(/[\s_-]/g, '');
|
const cleanedValue = value.toLowerCase().replace(/[\s_\-]/g, '');
|
||||||
|
|
||||||
if (cleanedValue.indexOf('password') < 0) {
|
if (cleanedValue.indexOf('password') < 0) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user