Fix echoarea naming regex
This commit is contained in:
parent
4048289cf3
commit
c904f1f9e9
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user