Skip to content

Commit

Permalink
fix: profile 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KANU896 committed Dec 21, 2023
1 parent 4535214 commit 8b781e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/profile/ProfileEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ export default {
sweetAlert.warning('변경할 닉네임을 입력해주세요', '', '닫기')
return
}
const nameRegExp = /^[a-zA-Z0-9가-힣]{3,10}$/
const nameRegExp = /^[^\s]{1,8}$/;
if (!nameRegExp.test(this.editedMemberName)) {
sweetAlert.warning('3~10자의 한글, 숫자, 영어만 \n 사용 가능합니다', '', '닫기')
sweetAlert.warning("1~8자만 사용 가능합니다", '', '닫기')
return
}
Expand Down

0 comments on commit 8b781e7

Please sign in to comment.