Skip to content

Commit

Permalink
Merge pull request #217 from ODOICHON/fix/#216
Browse files Browse the repository at this point in the history
Fix/#216 ๋งค๋ฌผ ์ƒํƒœ ๋ณ€๊ฒฝ ๋ชจ๋‹ฌ ์ „ํ™”๋ฒˆํ˜ธ ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ์ •๊ทœํ‘œํ˜„์‹ ์ˆ˜์ •
  • Loading branch information
sangminlee98 authored Dec 12, 2023
2 parents 63b6e75 + 072523a commit 7593c1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Routes.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import { lazy } from 'react';
import { RouteObject } from 'react-router-dom';
import GlobalLayout from '@/pages/_layout';
import MyPage from './pages/Mypage';
import MyCommentsPage from './pages/Mypage/community/comments';

import MyLikesPage from './pages/Mypage/community/likes';
import MyPage from './pages/Mypage';
import MyWritePage from './pages/Mypage/community/write';
import MyHomePage from './pages/Mypage/home';
import MySelfPage from './pages/Mypage/trade/myself';
import MySavesPage from './pages/Mypage/trade/saves';
import MyScrapPage from './pages/Mypage/trade/scrap';


const MainPage = lazy(() => import('@/pages/Main'));
const LoginPage = lazy(() => import('@/pages/Login'));
const SignUpPage = lazy(() => import('@/pages/SignUp'));
Expand Down
2 changes: 1 addition & 1 deletion src/components/MyPage/DealStateModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function DealStateModal({
alert('ํ•„์ˆ˜ ํ•ญ๋ชฉ์„ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”.');
return;
}
if (!contact.match(/(\d{2,3}-\d{3,4}-\d{4})$/g)) {
if (!contact.match(/^(\d{2,3}\d{3,4}\d{4})$/g)) {
alert('์ „ํ™”๋ฒˆํ˜ธ ํ˜•์‹์ด ๋งž์ง€ ์•Š์Šต๋‹ˆ๋‹ค.');
return;
}
Expand Down

0 comments on commit 7593c1d

Please sign in to comment.