Skip to content

Commit

Permalink
chore: remove strpos check
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed Nov 13, 2023
1 parent 641a7a0 commit a2b6888
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Validator/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ public function isValid($value): bool
return false;
}

if (strpos($value, '://') !== false) {
return false;
}

return \filter_var($value, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME) !== false;
}

Expand Down

0 comments on commit a2b6888

Please sign in to comment.