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([ $request->validate([
// http://ftsc.org/docs/old/fsp-1028.002 // http://ftsc.org/docs/old/fsp-1028.002
'domain_id' => 'required|exists:domains,id', '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', 'description' => 'required',
'active' => 'required|boolean', 'active' => 'required|boolean',
'public' => 'required|boolean', 'public' => 'required|boolean',