1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-07-05 12:04:54 +02:00

added an escape character to a regex string

This commit is contained in:
Addison Beck 2020-09-28 12:57:40 -04:00
parent a2a994cb4d
commit 64dd14ffc5

View File

@ -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;