From 8bf38e5dde17dfe2f5ead23a51daff9f3049f3b6 Mon Sep 17 00:00:00 2001 From: Wun Chiou Date: Tue, 18 Nov 2025 19:32:45 -0600 Subject: [PATCH] Tweak allowed search characters and length - allow slash, ampersand, parentheses - allow 150 char search length --- app/Http/Requests/ProfileSearchRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Requests/ProfileSearchRequest.php b/app/Http/Requests/ProfileSearchRequest.php index af9de6c..aa7218e 100644 --- a/app/Http/Requests/ProfileSearchRequest.php +++ b/app/Http/Requests/ProfileSearchRequest.php @@ -29,9 +29,9 @@ public function rules(): array 'string', // letters, marks, numbers, spaces, commas, periods, dashes, // and non-consecutive apostrophes that are preceded and followed by a letter - "regex:/^([\p{L}\p{M}\p{N}\p{Zs},\.-]|(?<=[\p{L}])'(?!')(?=[\p{L}]))*$/u", + "regex:/^([\p{L}\p{M}\p{N}\p{Zs},\.\/&\(\)-]|(?<=[\p{L}])'(?!')(?=[\p{L}]))*$/u", 'min:3', - 'max: 100', + 'max: 150', ], ]; }