1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-25 07:40:29 +02:00

Pas de chiffre dans les noms d'équipe

This commit is contained in:
galaxyoyo
2019-10-06 14:03:02 +02:00
parent 866d4a2744
commit 94a364cc3d
4 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@ class MyTeam
ensure($this->name != "" && $this->name != null, "Veuillez spécifier un nom d'équipe.");
ensure($this->name == $this->team->getName() || !teamExists($this->name), "Une équipe existe déjà avec ce nom.");
ensure(preg_match("#^[\p{L} \d]+$#ui", $this->name), "Le nom de l'équipe ne doit pas comporter de caractères spéciaux.");
ensure(preg_match("#^[\p{L} ]+$#ui", $this->name), "Le nom de l'équipe ne doit pas comporter de caractères spéciaux.");
ensure(preg_match("#^[A-Z]{3}$#", $this->trigram), "Le trigramme n'est pas valide.");
ensure($this->trigram == $this->team->getTrigram() || !trigramExists($this->trigram), "Une équipe a déjà choisi ce trigramme.");
ensure(preg_match("#^[0-4]$#", $this->problem), "Le problème indiqué n'existe pas.");