Skip to content

Commit 2a4d6d7

Browse files
authored
Add new rule
1 parent 6f274b6 commit 2a4d6d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

+6
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ class Beelzebub {
193193
message: 'Password must be a palindrome.',
194194
infuriationLevel: InfuriationLevel.Ridiculous,
195195
},
196+
{
197+
passwordIsInvalid: password =>
198+
password.match(/\u202E/) === null,
199+
message: 'Password must contain RLO character',
200+
infuriationLevel: InfuriationLevel.High,
201+
},
196202
// {
197203
// passwordIsInvalid: password => password.length > 20,
198204
// 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)