Skip to content

Commit

Permalink
refactor: (#25) 정규식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
khcho0125 committed Sep 6, 2022
1 parent 746f690 commit 4ca642b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ data class WebSignUpRequest (
val password: String,

/**
* white space , _ , . , a ~ z, A ~ Z , 0 ~ 9 , 가 ~ 힣
* first word - 가 ~ 힣
*
* white space , _ , . , 가 ~ 힣
**/
@field:Pattern(regexp = """[\s_.\w]|[가-힣]*""")
@field:Pattern(regexp = """^[가-힣][\s_.가-힣]*""")
@field:Length(max = 20)
val nickname: String?,

Expand Down

0 comments on commit 4ca642b

Please sign in to comment.