From d329b82a30c145466910dc37b8e9b2cc6a84fd3a Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Fri, 8 Oct 2021 13:19:18 +0200 Subject: [PATCH] Fix comma-separated regex rule for ids --- app/Http/Requests/TwoFAccountBatchRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/TwoFAccountBatchRequest.php b/app/Http/Requests/TwoFAccountBatchRequest.php index 1b667aab..fea9c3dc 100644 --- a/app/Http/Requests/TwoFAccountBatchRequest.php +++ b/app/Http/Requests/TwoFAccountBatchRequest.php @@ -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', ]; } } \ No newline at end of file