From 0f522e2c23cd63bf87ccbe64c45a68b76693347d Mon Sep 17 00:00:00 2001 From: abourtnik Date: Fri, 15 Dec 2023 13:27:04 +0100 Subject: [PATCH] fix: Fix website validation regex --- app/Http/Requests/UpdateUserRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/UpdateUserRequest.php b/app/Http/Requests/UpdateUserRequest.php index ec3cd2b..d87b662 100644 --- a/app/Http/Requests/UpdateUserRequest.php +++ b/app/Http/Requests/UpdateUserRequest.php @@ -71,7 +71,7 @@ public function rules() : array 'website' => [ 'sometimes', 'nullable', - 'regex:/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/', + 'regex:/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w@ \.-]*)*\/?$/', 'max:'.config('validation.user.website.max'), ], 'show_subscribers' => 'sometimes|nullable|boolean'