mirror of
https://github.com/bitwarden/browser
synced 2024-12-26 18:04:07 +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;
|
||||
}
|
||||
// Removes all whitespace, _ and - characters
|
||||
const cleanedValue = value.toLowerCase().replace(/[\s_-]/g, '');
|
||||
const cleanedValue = value.toLowerCase().replace(/[\s_\-]/g, '');
|
||||
|
||||
if (cleanedValue.indexOf('password') < 0) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user