From c904f1f9e9324c30ab055f0285b2ede278878731 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 14 Aug 2021 23:05:11 +1000 Subject: [PATCH] Fix echoarea naming regex --- app/Http/Controllers/EchoareaController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/EchoareaController.php b/app/Http/Controllers/EchoareaController.php index c8863c0..798dd24 100644 --- a/app/Http/Controllers/EchoareaController.php +++ b/app/Http/Controllers/EchoareaController.php @@ -24,7 +24,7 @@ class EchoareaController extends Controller $request->validate([ // http://ftsc.org/docs/old/fsp-1028.002 'domain_id' => 'required|exists:domains,id', - 'name' => 'required|max:35|regex:/^[a-zA-Z-_~]{1,8}$/|unique:echoareas,name,'.($o->exists ? $o->id : 0), + 'name' => 'required|min:4|max:35|regex:/^[a-zA-Z-_~]{4,}$/|unique:echoareas,name,'.($o->exists ? $o->id : 0), 'description' => 'required', 'active' => 'required|boolean', 'public' => 'required|boolean',