Fix comma-separated regex rule for ids

This commit is contained in:
Bubka 2021-10-08 13:19:18 +02:00
parent c927f3f9ab
commit d329b82a30

View File

@ -24,7 +24,7 @@ public function authorize()
public function rules()
{
return [
'ids' => 'required|string|regex:/^\d+([,][\d]+)*$/i',
'ids' => 'required|string|regex:/^\d+(,{1}\d+)*$/i',
];
}
}