Migrating LoginScene to Svelte
This commit is contained in:
parent
120a488121
commit
13d3227323
13 changed files with 150 additions and 176 deletions
|
@ -10,7 +10,7 @@ export interface CharacterTexture {
|
|||
export const maxUserNameLength: number = MAX_USERNAME_LENGTH;
|
||||
|
||||
export function isUserNameValid(value: unknown): boolean {
|
||||
return typeof value === "string" && value.length > 0 && value.length < maxUserNameLength && value.indexOf(' ') === -1;
|
||||
return typeof value === "string" && value.length > 0 && value.length <= maxUserNameLength && value.indexOf(' ') === -1;
|
||||
}
|
||||
|
||||
export function areCharacterLayersValid(value: string[] | null): boolean {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue