Skip to content

Commit

Permalink
Merge pull request #227 from 0x1-company/username-validate
Browse files Browse the repository at this point in the history
feat: 🎸 username validation error text
  • Loading branch information
tomokisun authored Jan 24, 2024
2 parents 3bc960d + 0f84231 commit b649810
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@
}
}
},
"username must be a string at least 4 characters long and up to 30 characters long containing only letters, numbers, underscores, and periods except that no two periods shall be in sequence or undefined" : {
"username must be a string at least 3 characters long and up to 30 characters long containing only letters, numbers, underscores, and periods except that no two periods shall be in sequence or undefined" : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "usernameは、文字、数字、アンダースコア、ピリオドのみを含む4文字以上30文字以下の文字列でなければなりません。"
"value" : "usernameは、文字、数字、アンダースコア、ピリオドのみを含む3文字以上30文字以下の文字列でなければなりません。"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public struct UsernameSettingLogic {
TextState("OK", bundle: .module)
}
} message: {
TextState("username must be a string at least 4 characters long and up to 30 characters long containing only letters, numbers, underscores, and periods except that no two periods shall be in sequence or undefined", bundle: .module)
TextState("username must be a string at least 3 characters long and up to 30 characters long containing only letters, numbers, underscores, and periods except that no two periods shall be in sequence or undefined", bundle: .module)
}
return .none

Expand Down

0 comments on commit b649810

Please sign in to comment.