Skip to content

Commit

Permalink
fix: 생년월일 validation 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJeongHooo committed Sep 13, 2024
1 parent 29701e8 commit bb63ea7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const BasicInfoForm = () => {
required: true,
maxLength: 8,
pattern: {
value: /^\d{8}$/,
value: /^(19[0-9][0-9]|20\d{2})(0[0-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])$/,
message: '생년월일 8자리를 입력해주세요',
},
})}
Expand Down

0 comments on commit bb63ea7

Please sign in to comment.