From 343b2f12a1eabbf4ffd9f99630ac314df5855bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=A1=ED=98=84=EC=84=9C?= Date: Fri, 1 Mar 2024 13:54:54 +0900 Subject: [PATCH 1/2] :sparkles: :: Change password regular expression --- .../main/java/com/goms/design_system/util/isStrongPassword.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From e6aa82861a8717d836c86c7bed4caccb485fc5ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=A1=ED=98=84=EC=84=9C?= Date: Fri, 1 Mar 2024 20:57:09 +0900 Subject: [PATCH 2/2] :lipstick: :: Change description text --- .../com/goms/design_system/component/textfield/GomsTextField.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )