Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Aug 3, 2024
1 parent 5c798b6 commit a0b4f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IpRanges.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private function prepareRanges(array $ranges): array
*/
private function parseNegatedRange(string $string): array
{
$isNegated = str_starts_with($string, '!');
$isNegated = strpos($string, '!') === 0;
return [$isNegated, $isNegated ? substr($string, strlen('!')) : $string];
}
}

0 comments on commit a0b4f9b

Please sign in to comment.