Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(password-score): any email must always score as bad.
Browse files Browse the repository at this point in the history
  • Loading branch information
sha49 committed May 4, 2016
1 parent 14e9afc commit bf3bab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Helpers.scorePassword = function (password) {
[0.25, /^[a-z\s]+[._!\- @*#]$/],
[0.25, /^[A-Z\s]+[._!\- @*#]$/],
[0.5, /^[a-zA-Z\s]+[._!\- @*#]$/],
[0.25, /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]+$/],
[0, /^[a-zA-Z0-9_]+@[a-zA-Z0-9]+\.[a-zA-Z]+$/], // email must always score bad
[1, /^.*$/]
];

Expand Down

0 comments on commit bf3bab7

Please sign in to comment.