mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-09 16:21:51 +00:00
Fixed missed trim replacement (#9)
This commit is contained in:
parent
ddb904432e
commit
77fb9b76b6
@ -708,7 +708,7 @@ export class MainMenuState extends GameState {
|
||||
label: null,
|
||||
placeholder: "",
|
||||
defaultValue: game.name || "",
|
||||
validator: val => val.match(regex) && trim(val).length > 0,
|
||||
validator: val => val.match(regex) && val.trim().length > 0,
|
||||
});
|
||||
const dialog = new DialogWithForm({
|
||||
app: this.app,
|
||||
@ -717,6 +717,7 @@ export class MainMenuState extends GameState {
|
||||
formElements: [nameInput],
|
||||
buttons: ["cancel:bad:escape", "ok:good:enter"],
|
||||
});
|
||||
|
||||
this.dialogs.internalShowDialog(dialog);
|
||||
|
||||
// When confirmed, save the name
|
||||
|
||||
Loading…
Reference in New Issue
Block a user