File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6666 if ( ! / ^ (? = .* [ a - z ] ) (? = .* [ A - Z ] ) (? = .* \d ) .{ 8 , } $ / . test ( password ) ) {
6767 problms = [ ] ;
6868 if ( password . length < 8 ) problms . push ( "Password must be at least 8 characters long." ) ;
69- if ( ! / ^ (? = .* [ a - z ] ) $ / . test ( password ) ) problms . push ( "Password must contain a lowercase letter." ) ;
70- if ( ! / ^ (? = .* [ A - Z ] ) $ / . test ( password ) ) problms . push ( "Password must contain an UPPERCASE letter." ) ;
71- if ( ! / ^ (? = .* \d ) $ / . test ( password ) ) problms . push ( "Password must contain a numb3r." ) ;
69+ if ( ! / ^ (? = .* [ a - z ] ) . { 0 , } $ / . test ( password ) ) problms . push ( "Password must contain a lowercase letter." ) ;
70+ if ( ! / ^ (? = .* [ A - Z ] ) . { 0 , } $ / . test ( password ) ) problms . push ( "Password must contain an UPPERCASE letter." ) ;
71+ if ( ! / ^ (? = .* \d ) . { 0 , } $ / . test ( password ) ) problms . push ( "Password must contain a numb3r." ) ;
7272
7373 statusElement . textContent = "Password doesn't meet requirements!\n" + problms . join ( "\n" ) ;
7474
You can’t perform that action at this time.
0 commit comments