Revert "cleanup: pt.2"

This reverts commit 33d9927abd.
This commit is contained in:
HDVinnie
2023-10-12 23:11:20 -04:00
parent 33d9927abd
commit 656647649f
67 changed files with 158 additions and 158 deletions
@@ -383,7 +383,7 @@ class TorrentController extends BaseController
{
$user = auth()->user();
$isRegexAllowed = $user->group->is_modo;
$isRegex = fn ($field): bool => $isRegexAllowed
$isRegex = fn ($field) => $isRegexAllowed
&& \strlen((string) $field) > 2
&& $field[0] === '/'
&& $field[-1] === '/'