Skip to content

Commit

Permalink
fix is valid domain host access modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
vstelmakh committed Jan 5, 2020
1 parent df1b467 commit f0c5281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UrlHighlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private function isValidUrlMatch(array $match): bool
* @param string $host
* @return bool
*/
public function isValidDomainHost(string $host): bool
private function isValidDomainHost(string $host): bool
{
preg_match('/[^.]+$/', $host, $matches);
$topLevelDomain = mb_strtolower($matches[0]);
Expand Down

0 comments on commit f0c5281

Please sign in to comment.