Skip to content

Commit

Permalink
Merge pull request #91 from f-lab-edu/bug/#80-리뷰-등록-안되는-현상
Browse files Browse the repository at this point in the history
[#80] Bug: 리뷰 등록 안되는 현상 수정
  • Loading branch information
superkkj committed Nov 19, 2022
2 parents 8eb4bf9 + 14bbb54 commit 1c80969
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@

import com.utils.annotation.RegExp;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SaveReviewRequest {

@NotNull(message = "유저아이디")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/utils/RegExpCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public enum RegExpCode {
PHONE("휴대폰 번호는 필수값 입니다.", "^01(?:0|1|[6-9])(?:\\d{3}|\\d{4})\\d{4}$", "휴대폰 번호 형식에 맞지 않습니다."),
PASSWORD("암호는 필수값 입니다.", "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d]{8,16}$", "암호 형식에 맞지 않습니다."),
USERNAME("유저명은 필수값 입니다.", "^[A-Za-z0-9]{4,12}$", "유저명 형식에 맞지 않습니다."),
REVIEW_CONTENT("리뷰내용은 필수값 입니다.", "^[ㄱ-ㅎ|가-힣|a-z|A-Z|0-9|~!@#$%^&*()_+|<>?:{}|]{0,100}$",
REVIEW_CONTENT("리뷰내용은 필수값 입니다.", "^[ㄱ-ㅎ\\s|가-힣\\s|a-z\\s|A-Z\\s|0-9\\s|~!@#$%^&*()_+\\s|<>?:{}\\s|]{0,100}$",
"내용은 한글 ,영문 ,숫자, 특수문자만 허용되고 글자 수는 100자로 제한됩니다.");

private final String nullCheckMsg;
Expand Down

0 comments on commit 1c80969

Please sign in to comment.