From b9c29de85c6c697c6b5fe5c04c03e61fc55b8be1 Mon Sep 17 00:00:00 2001 From: zelkovaria Date: Thu, 29 Feb 2024 23:19:19 +0900 Subject: [PATCH] =?UTF-8?q?test:=20input=EA=B0=92=20=EC=A0=84=EC=86=A1=20?= =?UTF-8?q?=ED=9B=84=20=EA=B0=92=20=EB=B9=84=EA=B5=90=EB=A5=BC=20=EC=9C=84?= =?UTF-8?q?=ED=95=9C=20=EC=9C=A0=ED=9A=A8=EC=84=B1=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20-=20#104?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Apply.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/Apply.js b/src/pages/Apply.js index 76e8354..47d3437 100644 --- a/src/pages/Apply.js +++ b/src/pages/Apply.js @@ -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,