Skip to content

Commit

Permalink
Merge pull request #395 from andresin87/main
Browse files Browse the repository at this point in the history
fix(model): regex pattern and remove console.log
  • Loading branch information
maadeval committed Nov 8, 2022
2 parents 35d3d56 + f73fb59 commit f55ef23
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/andresin87/model/Password/Password.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ class Password {
let i
const validChars = []

console.log({ hasLowerCase, hasCapitalLetter, hasSymbol, hasNumber })

let pattern = Password.getRegexPattern({ hasLowerCase, hasCapitalLetter, hasSymbol, hasNumber })

// Non memorable passwords will pick characters from a pre-generated
Expand Down Expand Up @@ -138,7 +136,7 @@ class Password {
hasNumber && '0-9'
]
.filter(Boolean)
.join('|')
.join('')
return regexString ? new RegExp(`^[${regexString}]*$`) : /\w/
}

Expand Down

1 comment on commit f55ef23

@vercel
Copy link

@vercel vercel bot commented on f55ef23 Nov 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.