Skip to content

Commit 4847d52

Browse files
authored
更新 index.ts
1 parent 604941d commit 4847d52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/user/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export async function modifyPasswordDialogs(
6161
) {
6262
function validatePasswordStrength(pwd: string): boolean {
6363
let strength = 0
64-
if (/^[ -\x7e]{8,14}/.test(pwd)) {
64+
if (!/^[ -\x7e]{8,14}/.test(pwd)) {
6565
return false
6666
}
6767
if (/^(?=.*[a-z])/.test(pwd)) {

0 commit comments

Comments
 (0)