containsDigit

fun containsDigit(description: String = "Password must contain at least one digit"): PasswordRule(source)

Creates a PasswordRule that checks whether the password contains at least one digit.