diff --git a/core/design-system/src/main/java/com/goms/design_system/component/textfield/GomsTextField.kt b/core/design-system/src/main/java/com/goms/design_system/component/textfield/GomsTextField.kt index 9b14b8cf..9e253b99 100644 --- a/core/design-system/src/main/java/com/goms/design_system/component/textfield/GomsTextField.kt +++ b/core/design-system/src/main/java/com/goms/design_system/component/textfield/GomsTextField.kt @@ -421,7 +421,7 @@ fun GomsPasswordTextField( ) { if (isDescription) { Text( - text = "대/소문자, 특수문자 12자 이상", + text = "대/소문자, 특수문자 6~15자", color = colors.G4, style = typography.buttonLarge ) diff --git a/core/design-system/src/main/java/com/goms/design_system/util/isStrongPassword.kt b/core/design-system/src/main/java/com/goms/design_system/util/isStrongPassword.kt index 7102e7a2..02e5dc4f 100644 --- a/core/design-system/src/main/java/com/goms/design_system/util/isStrongPassword.kt +++ b/core/design-system/src/main/java/com/goms/design_system/util/isStrongPassword.kt @@ -1,6 +1,6 @@ package com.goms.design_system.util fun isStrongPassword(password: String): Boolean { - val regex = Regex("^(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#\$%^&*(),.?\":{}|<>])(.{12,})\$") + val regex = Regex("^(?=.[a-zA-Z])(?=.[!@#\$%^&?~])[a-zA-Z!@#\$%^&?~]{6,15}\$") return regex.matches(password) } \ No newline at end of file