We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd9aaa2 commit f2e3362Copy full SHA for f2e3362
1 file changed
src/main/kotlin/com/parnote/route/api/RegisterAPI.kt
@@ -107,13 +107,13 @@ class RegisterAPI : Api() {
107
return
108
}
109
110
- if (!name.matches(Regex("^[A-Za-z ]*$"))) {
+ if (!name.matches(Regex("^[\\p{L} ]+$"))) {
111
errorHandler.invoke(Error(ErrorCode.REGISTER_NAME_INVALID))
112
113
114
115
116
- if (!surname.matches(Regex("^[A-Za-z]*$"))) {
+ if (!surname.matches(Regex("^[\\p{L}]+\$"))) {
117
errorHandler.invoke(Error(ErrorCode.REGISTER_SURNAME_INVALID))
118
119
@@ -179,7 +179,7 @@ class RegisterAPI : Api() {
179
180
181
182
- successHandler.invoke()
+// successHandler.invoke()
183
184
185
private fun validateFormHandler(
0 commit comments