Codemaid
This commit is contained in:
@@ -2,13 +2,12 @@
|
||||
|
||||
namespace Wallet;
|
||||
|
||||
public partial class LowercaseRule :
|
||||
public partial class LowercaseRule :
|
||||
IPasswordRule
|
||||
{
|
||||
public int CalculateScore(string password) =>
|
||||
Regex().IsMatch(password) ? 2 : 0;
|
||||
|
||||
|
||||
[GeneratedRegex(@"[a-z]")]
|
||||
private static partial Regex Regex();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user