Skip to content

Commit

Permalink
fix: Fix website validation regex
Browse files Browse the repository at this point in the history
  • Loading branch information
abourtnik committed Dec 15, 2023
1 parent 3a56425 commit 0f522e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Requests/UpdateUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 0f522e2

Please sign in to comment.