We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78a3947 commit 52b0e60Copy full SHA for 52b0e60
src/stores/user.ts
@@ -106,7 +106,7 @@ export const useUserStore = defineStore('user', {
106
},
107
validatePasswordStrength(pwd: string): boolean {
108
let strength = 0
109
- if (!(/^[ -\x7e]{8,14}/.test(pwd))) {
+ if (!(/^[ -\x7e]{8,14}$/.test(pwd))) {
110
return false
111
}
112
if (/^(?=.*[a-z])/.test(pwd)) {
src/views/user/index.ts
@@ -61,7 +61,7 @@ export async function modifyPasswordDialogs(
61
) {
62
function validatePasswordStrength(pwd: string): boolean {
63
64
- if (!/^[ -\x7e]{8,14}/.test(pwd)) {
+ if (!/^[ -\x7e]{8,14}$/.test(pwd)) {
65
66
67
0 commit comments