Created
September 14, 2020 16:52
-
-
Save Uriel29/28651dda279e48eebee5fa92302b4576 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (true) { | |
const password = gets(); | |
if (password.length === 0) { | |
break; | |
} | |
checaSenha(password); | |
} | |
function checaSenha(senha) | |
{ | |
var passw = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,32}$/; | |
if(senha.match(passw)){ | |
console.log('Senha valida.') | |
}else{ | |
console.log('Senha invalida.') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment