Skip to content

Commit

Permalink
fix: 정규식 패턴 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Taewan-P committed Nov 15, 2023
1 parent 9160b1c commit 2384db9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class SignupViewModel : ViewModel() {
val isRetypePasswordError: Boolean? = null
)

private val emailPattern = """^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$""".toRegex()
private val passwordPattern = """^[a-zA-Z0-9!@#$%^&*]{8,16}$""".toRegex()
private val emailPattern = """^[\w.+-]+@((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+[A-Za-z]{2,6}$""".toRegex()
private val passwordPattern = """^(?=[A-Za-z\d!@#$%^&*]*\d)(?=[A-Za-z\d!@#$%^&*]*[a-z])(?=[A-Za-z\d!@#$%^&*]*[A-Z])(?=[A-Za-z\d!@#$%^&*]*[!@#$%^&*])[A-Za-z\d!@#$%^&*]{8,16}$""".toRegex()

private val _state: MutableStateFlow<SignupUIState> = MutableStateFlow(SignupUIState())
val state: StateFlow<SignupUIState> = _state.asStateFlow()
Expand Down

0 comments on commit 2384db9

Please sign in to comment.