Skip to content

Commit

Permalink
Update src/lib/QueryType/UserQueryType.php
Browse files Browse the repository at this point in the history
Co-authored-by: Konrad Oboza <[email protected]>
  • Loading branch information
ciastektk and konradoboza authored Nov 27, 2024
1 parent 37f0dc0 commit 0ea68b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/QueryType/UserQueryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private function cleanSearchPhrase(string $phrase): string
{
$sanitizedPhrase = preg_replace('/[^a-zA-Z0-9@._-]/', '', $phrase);
if (null === $sanitizedPhrase) {
throw new RuntimeException('Could not to sanitize search phrase.');
throw new RuntimeException('Could not sanitize search phrase.');
}

return $sanitizedPhrase;
Expand Down

0 comments on commit 0ea68b4

Please sign in to comment.