Skip to content

Commit

Permalink
test: input값 전송 후 값 비교를 위한 유효성 테스트 - #104
Browse files Browse the repository at this point in the history
  • Loading branch information
zelkovaria committed Feb 29, 2024
1 parent d37dae9 commit b9c29de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/Apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const Apply = () => {
// const today = new Date().getTime();
// if (startDay <= today && today <= lastDay) {
try {
const studentIdRegEx = /^[6][0][0-9]{6}$/;
const extest = studentIdRegEx.test(data.id);
console.log(extest);
setIsLoading(true);
const response = await Axios.post('/apply', {
studentId: data.id,
Expand Down

0 comments on commit b9c29de

Please sign in to comment.