Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit 31b40fd

Browse files
committed
ReDoS 解消?
1 parent e6c9e96 commit 31b40fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workspaces/admin/src/pages/AuthPage/internal/LoginContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ export const LoginContent: React.FC = () => {
2323
.required('メールアドレスを入力してください')
2424
.test({
2525
message: 'メールアドレスには @ を含めてください',
26-
test: (v) => /^(?:[^@]*){12,}$/v.test(v) === false,
26+
test: (v) => /^[^@]{12,}$/v.test(v) === false,
2727
}),
2828
password: yup
2929
.string()
3030
.required('パスワードを入力してください')
3131
.test({
3232
message: 'パスワードには記号を含めてください',
33-
test: (v) => /^(?:[^\P{Letter}&&\P{Number}]*){24,}$/v.test(v) === false,
33+
test: (v) => /^[a-zA-Z0-9]{24,}$/v.test(v) === false,
3434
}),
3535
}),
3636
});

0 commit comments

Comments
 (0)