I inherited a project and have no idea what this does:
/\d/.test(password)
Any ideas?
It checks that the password contains a digit (0-9).