From b79570bcd9185b7384c2969b99e76146ae720b04 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Sun, 3 Oct 2021 13:56:33 +0200 Subject: [PATCH] Fix regex validation rule for TwoFAccounts batch delete --- 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 728cad5a..1b667aab 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,])+[\d]+$/i', + 'ids' => 'required|string|regex:/^\d+([,][\d]+)*$/i', ]; } } \ No newline at end of file