From a1aeb2622335bd6db644f0acc9d253569882c2d4 Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Thu, 25 Jan 2018 11:03:21 +0100
Subject: [PATCH] FEAT #18 Regex check for basket creation view

---
 .../Views/basket-administration.component.html                  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/maarch_entreprise/Views/basket-administration.component.html b/apps/maarch_entreprise/Views/basket-administration.component.html
index 9b1f478df33..426367a8e92 100644
--- a/apps/maarch_entreprise/Views/basket-administration.component.html
+++ b/apps/maarch_entreprise/Views/basket-administration.component.html
@@ -11,7 +11,7 @@
                 <div class="form-group">
                     <div class="col-sm-12">
                         <div class="input-group">
-                            <input *ngIf="creationMode" type="text" class="form-control" name="identifier" placeholder="{{lang.id}}" [(ngModel)]="basket.id" required>
+                            <input *ngIf="creationMode" type="text" class="form-control" name="identifier" placeholder="{{lang.id}}" [(ngModel)]="basket.id" pattern="^[\w-]*$" maxlength="30" required>
                             <input *ngIf="!creationMode" type="text" class="form-control" name="identifier" title="{{lang.id}}" [(ngModel)]="basket.id" disabled>
                         </div>
                     </div>
-- 
GitLab