Skip to content

Commit d44e013

Browse files
authored
Merge pull request #76 from brxken128/additions
Password must contain at least 1 character with an acute accent
2 parents 9f236b1 + dfa6006 commit d44e013

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

+5
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ class Beelzebub {
257257
message: 'Password length must be odd',
258258
infuriationLevel: InfuriationLevel.Moderate,
259259
},
260+
{
261+
passwordIsInvalid: password => password.match(/[ÁÉÍÓÚáéíóú]/) === null,
262+
message: 'Password must contain at least 1 character with an acute accent',
263+
infuriationLevel: InfuriationLevel.Ridiculous,
264+
},
260265
// {
261266
// passwordIsInvalid: password => password.length > 20,
262267
// message: 'Password must not be ' + password.length + ' characters long', TODO: Can't access password here. Might need to make message a function?

0 commit comments

Comments
 (0)