[+] Allow use any characters in maimai name

pull/49/head
Clansty 2024-07-29 10:23:08 +08:00
parent df3bd6fbec
commit d7f24759d8
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class UpsertUserAllHandler(
val repos: Mai2Repos
) : BaseHandler {
fun String.isValidUsername() = isNotBlank() && length <= 8 && all { it in SEGA_USERNAME_CAHRS }
fun String.isValidUsername() = isNotBlank() && length <= 8
@Throws(JsonProcessingException::class)
override fun handle(request: Map<String, Any>): Any? {