Skip to content

Commit eb478c9

Browse files
committed
Tweak allowed search characters and length
- allow slash, ampersand, parentheses - allow 150 char search length
1 parent 0ac522f commit eb478c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Requests/ProfileSearchRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public function rules(): array
2929
'string',
3030
// letters, marks, numbers, spaces, commas, periods, dashes,
3131
// and non-consecutive apostrophes that are preceded and followed by a letter
32-
"regex:/^([\p{L}\p{M}\p{N}\p{Zs},\.-]|(?<=[\p{L}])'(?!')(?=[\p{L}]))*$/u",
32+
"regex:/^([\p{L}\p{M}\p{N}\p{Zs},\.\/&\(\)-]|(?<=[\p{L}])'(?!')(?=[\p{L}]))*$/u",
3333
'min:3',
34-
'max: 100',
34+
'max: 150',
3535
],
3636
];
3737
}

0 commit comments

Comments
 (0)