Skip to content

Commit

Permalink
Merge pull request #72 from team-haribo/feature/71-change-password-re…
Browse files Browse the repository at this point in the history
…gular-expression

🔀 :: (#71) - change password regular expression
  • Loading branch information
diejdkll authored Mar 2, 2024
2 parents 5e1c6f1 + e6aa828 commit 527d43b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ fun GomsPasswordTextField(
) {
if (isDescription) {
Text(
text = "대/소문자, 특수문자 12자 이상",
text = "대/소문자, 특수문자 6~15자",
color = colors.G4,
style = typography.buttonLarge
)
Expand Down
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 527d43b

Please sign in to comment.