Fix echoarea naming regex

This commit is contained in:
Deon George 2021-08-14 23:05:11 +10:00
parent 4048289cf3
commit c904f1f9e9

View File

@ -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',